Using the Visual State Manager in Silverlight Templates: Listing 1

<Style x:Key="ButtonFlatStyle" TargetType="Button">
    <Setter Property="Width" Value="100" />
    <Setter Property="Template">
            <ControlTemplate TargetType="Button">  
                    <Border Width="{TemplateBinding Width}" 
                       Height="{TemplateBinding Height}"
                       Background="{TemplateBinding Background}" 
                       CornerRadius="8" BorderBrush="Black" 
                            Content="{TemplateBinding Content}" 
                            VerticalAlignment="Center" />
comments powered by Disqus

.NET Insight

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.

Upcoming Events