Quantcast
Channel: Surviveplus.net
Viewing all articles
Browse latest Browse all 8

WPF Localization

$
0
0

Localize WPF xaml element by using x:Uid attributes and resource files.

WPF XAML User-interface(UI) localization is very more complicated than Windows Store Apps and Windows Phone Apps. To use this library, to localize UI element by using x:Uid attributes and resource files.

Install “Surviveplus.WpfLocalization” to class library project from NuGet Package Manager, and add x:Uid attribute to XAML of WPF page or control, like this example.

wpfXamlSample

Add text to Resources.resx (and other language files), like this example.

wpfResource

Add code to call WpfLocalization.ApplyResources method, after InitializeComponent in constructor.

 


Viewing all articles
Browse latest Browse all 8

Trending Articles