<Window x:Class="Calculator.frmCalcu"
 Height="295" Width="261" Title="Calculator" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen"
   xmlns:my="clr-namespace:gmRTL.WPF;assembly=gmRTL.WPF"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
<Window.Resources>
   <RoutedUICommand x:Key="mnuCopy_Command" />
   <RoutedUICommand x:Key="mnuPaste_Command" />
</Window.Resources>
<Window.CommandBindings>
   <CommandBinding Command="{StaticResource mnuCopy_Command}" Executed="mnuCopy_Click" />
   <CommandBinding Command="{StaticResource mnuPaste_Command}" Executed="mnuPaste_Click" />
</Window.CommandBindings>
<Window.InputBindings>
   <KeyBinding Gesture="Ctrl+C" Command="{StaticResource mnuCopy_Command}" />
   <KeyBinding Gesture="Ctrl+P" Command="{StaticResource mnuPaste_Command}" />
</Window.InputBindings>
<DockPanel LastChildFill="True">
<Menu DockPanel.Dock="Top" Name="mainMenu1" IsMainMenu="True">
   <MenuItem Header="_Edit" Name="mnuEdit">
      <MenuItem Header="_Copy" Name="mnuCopy" Click="mnuCopy_Click" InputGestureText="Ctrl+C" />
      <MenuItem Header="_Paste" Name="mnuPaste" Click="mnuPaste_Click" InputGestureText="Ctrl+P" />
   </MenuItem>
</Menu>
<my:GraphicsPanel Name="Surface" Margin="0" Background="#FFF0F0F0" ScaleLeft="0" ScaleTop="0" ScaleMode="Pixels">
   <Label Name="lblMem" Canvas.Left="8" Canvas.Top="40" Background="#FFF0F0F0" TabIndex="28" FontFamily="Tahoma" FontSize="21" Margin="3,0" Padding="0" HorizontalContentAlignment="Center" Height="33" Width="33" />
   <Button Name="_numero_0" Canvas.Left="48" Canvas.Top="200" Height="33" Width="33" TabIndex="1" Click="numero_Click" Content="0" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_numero_1" Canvas.Left="48" Canvas.Top="160" Height="33" Width="33" TabIndex="2" Click="numero_Click" Content="1" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_numero_2" Canvas.Left="88" Canvas.Top="160" Height="33" Width="33" TabIndex="3" Click="numero_Click" Content="2" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_numero_3" Canvas.Left="128" Canvas.Top="160" Height="33" Width="33" TabIndex="4" Click="numero_Click" Content="3" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_numero_4" Canvas.Left="48" Canvas.Top="120" Height="33" Width="33" TabIndex="5" Click="numero_Click" Content="4" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_numero_5" Canvas.Left="88" Canvas.Top="120" Height="33" Width="33" TabIndex="6" Click="numero_Click" Content="5" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_numero_6" Canvas.Left="128" Canvas.Top="120" Height="33" Width="33" TabIndex="7" Click="numero_Click" Content="6" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_numero_7" Canvas.Left="48" Canvas.Top="80" Height="33" Width="33" TabIndex="8" Click="numero_Click" Content="7" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_numero_8" Canvas.Left="88" Canvas.Top="80" Height="33" Width="33" TabIndex="9" Click="numero_Click" Content="8" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_numero_9" Canvas.Left="128" Canvas.Top="80" Height="33" Width="33" TabIndex="10" Click="numero_Click" Content="9" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_operator_0" Canvas.Left="168" Canvas.Top="80" Height="33" Width="33" TabIndex="11" Click="operator_Click" Content="/" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_operator_1" Canvas.Left="168" Canvas.Top="200" Height="33" Width="33" TabIndex="12" Click="operator_Click" Content="+" FontFamily="Tahoma" FontSize="16" />
   <Button Name="_operator_2" Canvas.Left="168" Canvas.Top="160" Height="33" Width="33" TabIndex="13" Click="operator_Click" Content="-" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_operator_3" Canvas.Left="168" Canvas.Top="120" Height="33" Width="33" TabIndex="14" Click="operator_Click" Content="*" FontFamily="Tahoma" FontSize="13" />
   <TextBox Name="txtDisplay" Canvas.Left="8" Canvas.Top="8" Height="25" Width="233" TabIndex="15" PreviewKeyDown="txtDisplay_KeyDown" Text="0" FontFamily="MS Sans Serif" FontSize="13" IsReadOnly="True" TextAlignment="Right" />
   <Button Name="_cmdMemory_0" Canvas.Left="8" Canvas.Top="80" Height="33" Width="33" TabIndex="16" Click="cmdMemory_Click" Content="MC" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_cmdMemory_1" Canvas.Left="8" Canvas.Top="200" Height="33" Width="33" TabIndex="17" Click="cmdMemory_Click" Content="M+" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_cmdMemory_2" Canvas.Left="8" Canvas.Top="160" Height="33" Width="33" TabIndex="18" Click="cmdMemory_Click" Content="MS" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_cmdMemory_3" Canvas.Left="8" Canvas.Top="120" Height="33" Width="33" TabIndex="19" Click="cmdMemory_Click" Content="MR" FontFamily="Tahoma" FontSize="13" />
   <Button Name="cmdDot" Canvas.Left="88" Canvas.Top="200" Height="33" Width="33" TabIndex="20" Click="cmdDot_Click" Content="." FontFamily="System" FontSize="26" />
   <Button Name="_cmdFunction_0" Canvas.Left="128" Canvas.Top="200" Height="33" Width="33" TabIndex="21" Click="cmdFunction_Click" Content="+/-" FontFamily="MS Sans Serif" FontSize="16" />
   <Button Name="_cmdFunction_1" Canvas.Left="208" Canvas.Top="160" Height="33" Width="33" TabIndex="22" Click="cmdFunction_Click" Content="1/X" FontFamily="MS Sans Serif" FontSize="11" />
   <Button Name="_cmdFunction_2" Canvas.Left="208" Canvas.Top="120" Height="33" Width="33" TabIndex="23" Click="cmdFunction_Click" Content="%" FontFamily="MS Sans Serif" FontSize="16" />
   <Button Name="_cmdFunction_3" Canvas.Left="208" Canvas.Top="80" Height="33" Width="33" TabIndex="24" Click="cmdFunction_Click" Content="Sqrt" FontFamily="Tahoma" FontSize="11" />
   <Button Name="cmdEqual" Canvas.Left="208" Canvas.Top="200" Height="33" Width="33" TabIndex="0" Click="cmdEqual_Click" PreviewKeyDown="cmdEqual_KeyPress" Content="=" FontFamily="Tahoma" FontSize="13" />
   <Button Name="_cmdCancel_0" Canvas.Left="48" Canvas.Top="40" Height="33" Width="65" TabIndex="25" Click="cmdCancel_Click" Content="Back" FontFamily="Arial" FontSize="11" />
   <Button Name="_cmdCancel_1" Canvas.Left="184" Canvas.Top="40" Height="33" Width="57" TabIndex="26" Click="cmdCancel_Click" Content="C" FontFamily="Arial" FontSize="11" />
   <Button Name="_cmdCancel_2" Canvas.Left="120" Canvas.Top="40" Height="33" Width="57" TabIndex="27" Click="cmdCancel_Click" Content="CE" FontFamily="Arial" FontSize="11" />
</my:GraphicsPanel>
</DockPanel>
</Window>
