Click here to Skip to main content
15,890,185 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Switch between diffrent languages with indexers Pin
Wayne Gaylard31-Aug-11 23:13
professionalWayne Gaylard31-Aug-11 23:13 
GeneralRe: Switch between diffrent languages with indexers Pin
Mc_Topaz31-Aug-11 23:36
Mc_Topaz31-Aug-11 23:36 
GeneralRe: Switch between diffrent languages with indexers Pin
Wayne Gaylard31-Aug-11 23:40
professionalWayne Gaylard31-Aug-11 23:40 
GeneralRe: Switch between diffrent languages with indexers Pin
Mc_Topaz1-Sep-11 1:57
Mc_Topaz1-Sep-11 1:57 
GeneralRe: Switch between diffrent languages with indexers Pin
Pete O'Hanlon1-Sep-11 2:09
mvePete O'Hanlon1-Sep-11 2:09 
GeneralRe: Switch between diffrent languages with indexers Pin
Mc_Topaz1-Sep-11 2:23
Mc_Topaz1-Sep-11 2:23 
GeneralRe: Switch between diffrent languages with indexers Pin
Pete O'Hanlon1-Sep-11 3:27
mvePete O'Hanlon1-Sep-11 3:27 
GeneralRe: Switch between different languages with indexers Pin
Wayne Gaylard1-Sep-11 21:50
professionalWayne Gaylard1-Sep-11 21:50 
Hi Pete,

Just a quick question on this topic. You said that you store you dictionaries in a database, and I can see the value in this, but you also said you bind the values at runtime. Does this mean that you have a property for each and every label, group box header, tab header etc that needs to be localised, and then bind to the property, or do you store your localising (is that a word?) strings in some sort of collection? If it is the former, then this must be a hell of a job, as on some forms, you could have up to 20 - 25 labels etc that need to be localised, and so would need to declare that many properties in your vewmodel, and if it is the latter, how do you bind the labels etc to the collection ? The way I proposed to the OP, i.e using the indexers, I got from one of Sasha Barbers articles WPF:Binding to individual collection items[^], and would appreciate it if you could give me your thought on this, as it does seem a bit of a hack, and could potentially lead to disastrous results if your dictionaries are not in sync.

Thanks for your time.
Wayne.
Live for today. Plan for tomorrow. Party tonight!

GeneralRe: Switch between different languages with indexers Pin
Pete O'Hanlon1-Sep-11 22:27
mvePete O'Hanlon1-Sep-11 22:27 
GeneralRe: Switch between different languages with indexers Pin
Wayne Gaylard1-Sep-11 23:05
professionalWayne Gaylard1-Sep-11 23:05 
GeneralRe: Switch between different languages with indexers Pin
Pete O'Hanlon1-Sep-11 23:29
mvePete O'Hanlon1-Sep-11 23:29 
GeneralRe: Switch between different languages with indexers Pin
Mycroft Holmes1-Sep-11 23:45
professionalMycroft Holmes1-Sep-11 23:45 
GeneralRe: Switch between diffrent languages with indexers Pin
Wayne Gaylard1-Sep-11 2:39
professionalWayne Gaylard1-Sep-11 2:39 
AnswerRe: Switch between diffrent languages with indexers Pin
Abhinav S1-Sep-11 1:13
Abhinav S1-Sep-11 1:13 
Questionsilverlight - backgroundworker process [modified] Pin
arkiboys31-Aug-11 18:41
arkiboys31-Aug-11 18:41 
AnswerRe: silverlight - backgroundworker process Pin
Mycroft Holmes31-Aug-11 19:28
professionalMycroft Holmes31-Aug-11 19:28 
GeneralRe: silverlight - backgroundworker process Pin
arkiboys31-Aug-11 19:30
arkiboys31-Aug-11 19:30 
AnswerRe: silverlight - backgroundworker process Pin
Pete O'Hanlon31-Aug-11 21:07
mvePete O'Hanlon31-Aug-11 21:07 
GeneralRe: silverlight - backgroundworker process Pin
arkiboys31-Aug-11 22:11
arkiboys31-Aug-11 22:11 
GeneralRe: silverlight - backgroundworker process Pin
Pete O'Hanlon31-Aug-11 23:18
mvePete O'Hanlon31-Aug-11 23:18 
GeneralRe: silverlight - backgroundworker process Pin
arkiboys31-Aug-11 23:38
arkiboys31-Aug-11 23:38 
GeneralRe: silverlight - backgroundworker process Pin
Pete O'Hanlon1-Sep-11 0:12
mvePete O'Hanlon1-Sep-11 0:12 
GeneralRe: silverlight - backgroundworker process Pin
arkiboys1-Sep-11 0:16
arkiboys1-Sep-11 0:16 
QuestionWindows Phone Pin
arkiboys31-Aug-11 7:43
arkiboys31-Aug-11 7:43 
QuestionMaster-Details binding of 2 related tables Pin
bitwise.csc31-Aug-11 2:29
bitwise.csc31-Aug-11 2:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.