//Window2.xaml(simple keyboard) <Window x:Class="WpfApplication1.Window2" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window2" Height="148" Width="300"> <Grid Height="110" Width="277"> <Button Margin="8,39,0,46" Name="button1" Click="button1_Click" HorizontalAlignment="Left" Width="41">Q</Button> <TextBox Height="23" Margin="8,14,9,0" Name="textBox1" VerticalAlignment="Top" /> <Button Margin="53,39,0,46" Name="button2" Click="button2_Click" HorizontalAlignment="Left" Width="40">W</Button> <Button Margin="0,39,140,46" Name="button3" Click="button3_Click" HorizontalAlignment="Right" Width="40">E</Button> <Button Margin="0,39,96,46" Name="button4" Click="button4_Click" HorizontalAlignment="Right" Width="40">R</Button> <Button Margin="0,39,52,46" Name="button5" Click="button5_Click" HorizontalAlignment="Right" Width="40">T</Button> <Button Margin="0,39,9,46" Name="button6" Click="button6_Click" HorizontalAlignment="Right" Width="41">Y</Button> <Button Margin="8,67,0,23" Name="button7" Click="button7_Click" HorizontalAlignment="Left" Width="41">U</Button> <Button Margin="0,0,183,23" Name="button8" Click="button8_Click" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="41">I</Button> <Button Margin="97,0,0,23" Name="button9" Click="button9_Click" Height="20" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="41">O</Button> <Button Margin="0,68,96,22" Name="button10" Click="button10_Click" HorizontalAlignment="Right" Width="41">P</Button> <Button Margin="184,67,52,23" Name="button11" Click="button11_Click">A</Button> <Button Margin="0,67,9,23" Name="button12" Click="button12_Click" HorizontalAlignment="Right" Width="41">S</Button> <Button Height="20" Margin="53,0,68,0" Name="button13" VerticalAlignment="Bottom" Click="button13_Click">Enter</Button> </Grid> </Window>
|