1: <UserControl.Resources>
2: <Style x:Key="myButtonTemplate" TargetType="Button">
3: <Setter Property="Template">
4: <Setter.Value>
5: <ControlTemplate TargetType="Button">
6: <Grid>
7: <Path Margin="2" x:Name="BackgroundGradient" Stretch="Fill" Stroke="#FF94C2D8"
8: StrokeThickness="2" Opacity="1"
9: Data="M44,-135 L137,-136 L163.00137,-114.43846 L138.14738,-98.33696 L40.513062,-96.888382 L65.010727,-116.44418 z" >
10:
11: <Path.Fill>
12: <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
13: <GradientStop Color="#FFA3AEB9" Offset="0"/>
14: <GradientStop Color="#FF8399A9" Offset="0.375"/>
15: <GradientStop Color="#FF718597" Offset="0.375"/>
16: <GradientStop Color="#FF617584" Offset="1"/>
17: </LinearGradientBrush>
18: </Path.Fill>
19: </Path>
20: <ContentPresenter
21: x:Name="contentPresenter"
22: Content="{TemplateBinding Content}"
23: ContentTemplate="{TemplateBinding ContentTemplate}"
24: VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
25: HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
26: Margin="{TemplateBinding Padding}"/>
27: </Grid>
28: </ControlTemplate>
29: </Setter.Value>
30: </Setter>
31: </Style>
32: </UserControl.Resources>