Nice Drop Shadow Border in XAML

I was working with Silverlight 3 and created this drop shadow border. Enjoy.

<Style x:Key="DropShadow" TargetType="Border">
    <Setter Property="Background" Value="WhiteSmoke" />
    <Setter Property="CornerRadius" Value="5" />
    <Setter Property="BorderThickness" Value="1,1,4,4" />
    <Setter Property="Margin" Value="10" />
    <Setter Property="Padding" Value="6" />
    <Setter Property="BorderBrush">
                <GradientStop Color="#ccc" Offset="0" />
                <GradientStop Color="#ddd" Offset="1" />


Anonymous said…
Thanks for sharing!

Popular posts from this blog

Migrating Legacy Apps to the New SimpleMembership Provider

Get Asp.Net Profile properties from Sql

JavaScript function to automatically add slashes to date