Permalink
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (30 sloc) 1005 Bytes
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MyNamespace.MyCode"
>
<Page.Resources>
<ControlTemplate x:Key="MyButtonTemplate" TargetType="{x:Type Button}">
<Border BorderBrush="Red" Name="TheBorder" BorderThickness="2">
<ContentPresenter/>
</Border>
</ControlTemplate>
</Page.Resources>
<!--<SnippetNamedE>-->
<StackPanel Name="buttonContainer">
<!--</SnippetNamedE>-->
<!--<SnippetMarginTCE>-->
<Button Margin="10,20,10,30" Content="Click me"/>
<!--</SnippetMarginTCE>-->
<!--<SnippetMarginVerbose>-->
<Button Content="Click me">
<Button.Margin>
<Thickness Left="10" Top="20" Right="10" Bottom="30"/>
</Button.Margin>
</Button>
<!--</SnippetMarginVerbose>-->
<!--<SnippetNamedE2>-->
<Button Click="RemoveThis">Click to remove this button</Button>
</StackPanel>
<!--</SnippetNamedE2>-->
</Page>