Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| <!--<SnippetNameScopeTemplates>--> | |
| <Page | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| > | |
| <Page.Resources> | |
| <ControlTemplate x:Key="MyButtonTemplate" TargetType="{x:Type Button}"> | |
| <Border BorderBrush="Red" Name="TheBorder" BorderThickness="2"> | |
| <ContentPresenter/> | |
| </Border> | |
| </ControlTemplate> | |
| </Page.Resources> | |
| <StackPanel> | |
| <Button Template="{StaticResource MyButtonTemplate}">My first button</Button> | |
| <Button Template="{StaticResource MyButtonTemplate}">My second button</Button> | |
| </StackPanel> | |
| </Page> | |
| <!--</SnippetNameScopeTemplates>--> |