How style works with Silverlight?

Answer

Style is collection of property value that apply to an element. First define the style in App.xaml.
<Application.Resource>
        <Style x:key="MyButton" TargetType="Button">
                 <Setter Property="FontFamily" Value="Verdana" />
                 <Setter Property="FontSize" Value="36" />
        </Style>
</Application.Resource>
 
Apply style to Button.
<Button Style="{StaticResource MyButton}" Content="My Button" ></Button>

All silverlight Questions

Ask your interview questions on silverlight

Write Your comment or Questions if you want the answers on silverlight from silverlight Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---