.NET Framework Bookmark and Share   
 index > Windows Presentation Foundation (WPF) > How to store the images in a localized application.
 

How to store the images in a localized application.

Hello,

I have the following problem:
We have to develop an application with localization/globalization support. This application would use some images (on buttons and such).
We want to be able to select a different set of images depending on the operation system settings, For ex.: if we deploy the application on a machine in ..say Germany, the application should pick up the images related to German locales.

Could anyone please explain me what would be the best, nice way do accomplish this in a WPF application?
Maybe a very small ..step by step...explanation?

Thank you for your time,
Cristian
Cristian M.
Say you have the images sharing the same path with some constant different indicating the culture (Folder, part of file name, whatever).
You can use an IValueConverter that returns the image Uri reading the current CultureInfo and returning the correspondent Uri.
Bigsby, Lisboa, Portugal - O que for, quando for, é que será o que é... http://bigsby.eu
Bigsby

You can use google to search for other answers

Custom Search

More Threads

• give minimum height to thumb in scrollbar
• How To Position a Ruler Above an Element On a Canvas
• get copies of document to print in System.Printing
• How to change the actualwidth property in runtime without changing the width property (this is, without taking the auto of it)
• Problem grouping data using CollectionViewSource
• When gets the Visual Tree updated?
• binding to objects - need to be static?
• XML Bound DataTemplate validating
• Keyboard input of WPF content inside Win32 application
• How can I use ResourceDictionary for string resources