Binding to Xml elements in Windows Phone 8.1




<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources>
<string name="ABOUT">ÜBER</string>
<string name="ABOUT_MESSAGE">Willkommen</string>
</resources>


I have this XML file with strings in my solution. Then in my project in the XAML I have:



<TextBlock Text="" FontFamily="Segoe WP" FontWeight="Light" Foreground="Black" FontSize="16"/>


How to bind the Text property of TextBlock to name="ABOUT" value. Where do I have to put the XML, and what kind of reference I need to add in the Xaml namespaces to find it?


Also, how to do this from the C# code-behind?


No comments:

Post a Comment