Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (30 sloc) 910 Bytes
<Canvas
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MyNamespace.MyCode"
Loaded="BAQ"
>
<StackPanel>
<!--<SnippetAPBasicUsage>-->
<DockPanel>
<CheckBox DockPanel.Dock="Top">Hello</CheckBox>
</DockPanel>
<!--</SnippetAPBasicUsage>-->
<Button Click="MakeANewThing">Make a new thing</Button>
<!--<SnippetDPPrecedence>-->
<Button Background="Red">
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="Green"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Blue" />
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
Click
</Button>
<!--</SnippetDPPrecedence>-->
</StackPanel>
</Canvas>