HomeWindowsWhat is Property Value Inheritance – XAML ?

What is Property Value Inheritance – XAML ?

When you created a new Windows Phone App , you would have noticed the following in the MainPage.XAML’s PhoneApplicationPage  element .

 FontFamily="{StaticResource PhoneFontFamilyNormal}"
 FontSize="{StaticResource PhoneFontSizeNormal}"
 Foreground="{StaticResource PhoneForegroundBrush}"

The above sample code is an example of the Property Value Inheritance which indicates the default appearance of the child elements of the page when these properties are not set on the element.

The child element (for example : TextBlock) defined in a Windows Phone Page uses the closest ancestor’s value if it is not defined .

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

This blog post will guide you through several effective methods to troubleshoot and resolve the issue of Microsoft Edge not...
Windows 11 offers a range of audio enhancements that can enrich your listening experience. These enhancements include features like virtual...
Windows 11 brings a fresh and visually stunning design to your desktop, and one of the standout features is the...