How to: Make XAML Content Localizable WPF application
You may want to localize your XAML content by supplying resource string for XML attributes.
For example you may want to change Content of a button :
<Button Content="Search"> </Button>
To Make Content Localizable
For example you may want to change Content of a button :
<Button Content="Search"> </Button>
To Make Content Localizable
- Create a new resource file.
- Make the access modifier of the resource file to public.
- create a class that has a public constructor Define a property that points to the resources.
- Open the App.xml file and add the following to the <Application.Resources> section:
- To make the Content Localizable; replace the string with