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

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...