Localization problem in Avalon

Hi,

I need to localize a listbox. Items of which are being read from an xml file. Can't have multiple culture specific xml files. Don't know how to incorporate xml to ResourceDictionary which is being used for containing culture specific information of other controls in the application. Can DataBinding help ?, if yes How? and if no What could be the alternative?

[380 byte] By [Kaul] at [2007-12-28]
# 1

Hi Kaul,

Microsoft has provided some great materials related to Localization in WPF which are available here: http://msdn2.microsoft.com/en-us/library/ms788718.aspx

If the reference documentation does not help, please provide some more details related to your problem, such as:

  • Which version of the .NET 3.0 framework are you using (a CTP, RCx, or RTM)
  • Explain what you mean by "Can't have multiple culture specific xml files"

ChadCampbell at 2007-9-4 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2

Thanks for replying,

  • I am using .Net Framework 3.0 CTP.
  • "Can't have multiple culture specific xml files" ,here goes the explanation - the listbox is being populated from the xml file. Now the options available for me are - 1) Create multiple culture specific xmls and read one that belongs tocurrent culture and 2) use ResourceDictionaries for the purpose (if possible).I'd like to go for opition 2.

Kaul.

Kaul at 2007-9-4 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified