Permalink
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 668 Bytes
<!--<SnippetXAML2>-->
<StackPanel
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="SDKSample.EventOvw2"
Name="dpanel2"
Initialized="PrimeHandledToo"
>
<StackPanel.Resources>
<Style TargetType="{x:Type Button}">
<EventSetter Event="Click" Handler="b1SetColor"/>
</Style>
</StackPanel.Resources>
<!--<SnippetSimplestSyntax2>-->
<Button>Click me</Button>
<!--</SnippetSimplestSyntax2>-->
<Button Name="ThisButton" Click="HandleThis">
Raise event, handle it, use handled=true handler to get it anyway.
</Button>
</StackPanel>
<!--</SnippetXAML2>-->