How to: Make XAML Content Localizable WPF application

Posted by Nantharupan on 10:22 AM in , ,
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

  1. Create a new resource file.
  2. Make the access modifier of the resource file to public.
  3. create a class that has a public constructor  Define a property that points to the resources. 
  4. Open the App.xml file and add the following to the <Application.Resources> section:
  5. To make the Content Localizable; replace the string with 



Popular posts

Copyright © 2009 On the way All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.