added samples
[windows-sources.git] / sdk / samples / WPFSamples / RoutedEventCustom / csharp / routedeventcustomapp / default.xaml
blob7ef04e3985810a6dfe8c655d48af082e2e0e4088
1 
2 <Window  
3     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5     xmlns:custom="clr-namespace:SDKSample;assembly=SDKSampleLibrary"
6     x:Class="SDKSample.RoutedEventCustomApp"
8     >
9     <Window.Resources>
10       <Style TargetType="{x:Type custom:MyButtonSimple}">
11         <Setter Property="Height" Value="20"/>
12         <Setter Property="Width" Value="250"/>
13         <Setter Property="HorizontalAlignment" Value="Left"/>
14         <Setter Property="Background" Value="#808080"/>
15       </Style>
16     </Window.Resources>
17     <StackPanel Background="LightGray">
18             <custom:MyButtonSimple Name="mybtnsimple" Tap="TapHandler">Click to see Tap custom event work</custom:MyButtonSimple>
19     </StackPanel>
20 </Window>