added samples
[windows-sources.git] / sdk / samples / WPFSamples / gotfocusLostfocusEffectUsingEvent / csharp / window1.xaml
blob9e62e225d24f423246cc2254e91b923bd52af1e6
1 <Window x:Class="SDKSamples.Window1"
2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4     xmlns:custom="clr-namespace:SDKSamples"  
5     Title="gotfocusLostfocusEffectUsingEvent" Height="400" Width="450"
6     >
7   <StackPanel>
8     <StackPanel.Resources>
9       <Style TargetType="{x:Type Button}">
10         <Setter Property="Height" Value="20"/>
11         <Setter Property="Width" Value="250"/>
12         <Setter Property="HorizontalAlignment" Value="Left"/>
13       </Style>
14     </StackPanel.Resources>
15     <Button
16         GotFocus="OnGotFocusHandler"
17         LostFocus="OnLostFocusHandler">Click Or Tab To Give Keyboard Focus</Button>
18     <Button
19         GotFocus="OnGotFocusHandler"
20         LostFocus="OnLostFocusHandler">Click Or Tab To Give Keyborad Focus</Button>
21   </StackPanel>
22 </Window>