This content was proof-read by Grammarly. You can Try Grammary for FREE
In one of the previous article , we demonstrated how to create an explicit style in Windows Phone 8 for TextBlock . In this article , we will explore how one can create an implicit style in Windows Phone 8.
How to Create an Implicit Style in Windows Phone 8 ?
To create an Implicit style , the steps are pretty simple , don’t specify the x:Key property in the style when defining them. Specify only the Target Type as shown below.
<Application.Resources> <Style TargetType="TextBlock"> <Setter Property="FontSize" Value="8" /> </Style> </Application.Resources>
Now , when you create a text block on the screen , you dont have to specify the style for the textblock , it will automatically pick the one from the one defined in the App.xaml file.