I have been using Resource mentioned in App.xaml directly in XAML file like in Windows 8 App
Text="{StaticResource ApplicationName}"
How can I use the same in Windows Phone 8 using ResourceApp.resx file in XAML directly?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as I know you cannot use resource file keys and x:Uid in Windows Phone 8 in the same way as in Windows Store apps.
If you want to localize Windows Phone apps, you have to use some kind of ViewModel, in this ViewModel you instantiate the AppResources class and then use this ViewModel as a DataContext of your Page:
You can then access the resources like this:
I’d recommend you to watch MVVM Light videos, they’ll teach you how to use localized resources in ViewModel, databinding, and lot more:
http://www.galasoft.ch/mvvmvideo1
http://www.galasoft.ch/mvvmvideo2