Preparing the XAML code

You have to initialize the localization engine in order to get values at design-time and to set up default dictionaries and assemblies (refer to Multiple assemblies and dictionaries).
First of all, create a xmlns reference to "" (same for SL & WP7 applications). The next step is to set the design time culture as well as default assembly and dictionary where the resource is located:

<Window xmlns:lex=""
<!-- Some controls -->
The value of DesignCulture can be changed dynamically during design time and will have an immediate effect on all localized properties. This gives you the possibility to check the correct localization directly in the WPF/Silverlight designer. This example configures the resx provider. For a full explanation on this provider, refer to Localization providers.

Previous topic: Resource files
Next topic: Our first localized text

Last edited Oct 24, 2012 at 11:28 AM by MrCircuit, version 7