<Window x:Class="WindowsApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Raw Keyboard Input" Height="371" Width="736">
<Grid>
<TextBox Height="22" Margin="158,62,144,0" Name="tbText" VerticalAlignment="Top" ></TextBox>
<GroupBox Header="Latest Keystroke" Margin="20.3033333333333,97.04,21,0" Name="groupBox1" Height="65.96" VerticalAlignment="Top"></GroupBox>
<GroupBox Header="Device Details" Margin="20.3033333333333,0,22,48" Name="groupBox2" Height="117.96" VerticalAlignment="Bottom"></GroupBox>
<Label HorizontalAlignment="Left" Margin="35.0066666666667,121.04,0,0" Name="label3" Width="43.9933333333333" Height="27.96" VerticalAlignment="Top">Code:</Label>
<Label HorizontalAlignment="Left" Margin="276.006666666667,122.04,0,0" Name="label4" Width="69.9933333333333" Height="27.96" VerticalAlignment="Top">Virtual Key:</Label>
<Label Height="29.96" Margin="344.006666666667,119.04,55,0" Name="lbVKey" VerticalAlignment="Top" FontSize="16" Foreground="#FF0000FF"></Label>
<Label HorizontalAlignment="Left" Margin="77.0066666666667,118.04,0,0" Name="lbKey" Width="171.993333333333" Height="27.96" VerticalAlignment="Top" FontSize="16" Foreground="#FF0000FF"></Label>
<Label HorizontalAlignment="Left" Margin="38.0066666666667,0,0,120" Name="label5" Width="51.9933333333333" Height="25.96" VerticalAlignment="Bottom">Handle:</Label>
<Label Margin="89.0066666666667,0,0,120" Name="lbHandle" HorizontalAlignment="Left" Width="79.9933333333352" Height="27.96" VerticalAlignment="Bottom" Foreground="#FF0000FF" FontSize="16"></Label>
<Label Margin="204.006666666667,0,0,115" Name="label6" HorizontalAlignment="Left" Width="48.993333333333" Height="29.96" VerticalAlignment="Bottom">Type:</Label>
<Label Margin="243.006666666667,0,0,120" Name="lbType" HorizontalAlignment="Left" Width="96.993333333333" Height="26.96" VerticalAlignment="Bottom" Foreground="#FF0000FF" FontSize="16"></Label>
<Label Height="25.96" HorizontalAlignment="Right" Margin="0,0,147,120.02" Name="label7" VerticalAlignment="Bottom" Width="78.9933333333333"># Keyboards:</Label>
<Label HorizontalAlignment="Right" Margin="0,0,86.9999999999998,122.04" Name="lbNumKeyboards" Width="60.9933333333333" Height="25.96" VerticalAlignment="Bottom" Foreground="#FF0000FF" FontSize="16"></Label>
<Label Height="25.96" HorizontalAlignment="Left" Margin="37.0066666666667,0,0,88.04" Name="label8" VerticalAlignment="Bottom" Width="46.9933333333333">Name:</Label>
<Label Height="30.96" Margin="86.006666666667,0,36,85.02" Name="lbName" VerticalAlignment="Bottom" Foreground="#FF0000FF" FontSize="16"></Label>
<Label Height="25.96" HorizontalAlignment="Left" Margin="35.0066666666667,0,0,56.52" Name="label9" VerticalAlignment="Bottom" Width="80.9933333333333">Device Desc:</Label>
<Label Height="28.96" Margin="112.006666666667,0,59,56.04" Name="lbDescription" VerticalAlignment="Bottom" Foreground="#FF0000FF" FontSize="16"></Label>
<Button Height="23" Margin="221,0,259,14" Name="button1" VerticalAlignment="Bottom" Click="CloseMe" CommandTarget="{x:Null}">Close</Button>
<TextBlock Margin="25,17,169.89,0" Height="34" VerticalAlignment="Top" ClipToBounds="False" LineStackingStrategy="BlockLineHeight" TextWrapping="WrapWithOverflow">Press an key on an attached keyboard, or enter text in the textbox below, to see details of the input device and the key(s) you pressed.</TextBlock>
</Grid>
</Window>