How to Access XAP Methods From WPF
A WPF XAP file contains the strings you use for Web page localization. Localization involves dynamic display of page languages. You use this display process to display button text, content and other website text in the user's native language. You access the XAP string data by specifying the language in your user control WPF setup code in the WPF designer.
Instructions
-
-
1
Open the WPF design software from the Windows program menu. Open the language app you want to edit in the designer.
-
2
Double-click the form file that contains the elements you want to localize. Add the code for the language you want to use. For instance, the following button uses the Japanese language:
<ButtonLanguage="ja-JP" />
-
-
3
Save the changes and open the app in the WPF debugger. Notice the button control uses the Japanese language when you change languages for the app.
-
1