How style works with Silverlight?

 Posted by Sumank on 5/10/2013 | Category: Silverlight Interview questions | Views: 2625 | Points: 40

Style is collection of property value that apply to an element. First define the style in


<Style x:key="MyButton" TargetType="Button">
<Setter Property="FontFamily" Value="Verdana" />
<Setter Property="FontSize" Value="36" />

Apply style to Button.
<Button Style="{StaticResource MyButton}" Content="My Button" ></Button>

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response