意表を突いても勝てない

サンムーンでたら頑張る

<Window x:Class="WpfApp4.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp4"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="584.454">
<Grid>
<Grid HorizontalAlignment="Left" Margin="174,90,0,49" Width="350">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="70"/>
<ColumnDefinition Width="70"/>
<ColumnDefinition Width="70"/>
<ColumnDefinition Width="70"/>
<ColumnDefinition Width="70"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="70"/>
<RowDefinition Height="70"/>
<RowDefinition Height="70"/>
<RowDefinition Height="70"/>
</Grid.RowDefinitions>
<Button x:Name="button_BS" Content="BS" HorizontalAlignment="Left" Grid.Row="3" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="0"/>
<Button x:Name="button_Zero" Content="0" HorizontalAlignment="Left" Grid.Row="3" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="1"/>
<Button x:Name="button_Comma" Content="." HorizontalAlignment="Left" Grid.Row="3" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="2"/>
<Button x:Name="button_Plus" Content="+" HorizontalAlignment="Left" Grid.Row="3" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="3"/>
<Button x:Name="button_Equal" Content="=" HorizontalAlignment="Left" Grid.Row="3" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="4"/>

<Button x:Name="button_One" Content="1" HorizontalAlignment="Left" Grid.Row="2" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="0"/>
<Button x:Name="button_Two" Content="2" HorizontalAlignment="Left" Grid.Row="2" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="1"/>
<Button x:Name="button_Three" Content="3" HorizontalAlignment="Left" Grid.Row="2" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="2"/>
<Button x:Name="button_Minus" Content="-" HorizontalAlignment="Left" Grid.Row="2" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="3"/>

<Button x:Name="button_Four" Content="4" HorizontalAlignment="Left" Grid.Row="1" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="0"/>
<Button x:Name="button_Five" Content="5" HorizontalAlignment="Left" Grid.Row="1" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="1"/>
<Button x:Name="button_Six" Content="6" HorizontalAlignment="Left" Grid.Row="1" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="2"/>
<Button x:Name="button_Multiply" Content="×" HorizontalAlignment="Left" Grid.Row="1" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="3"/>

<Button x:Name="button_Seven" Content="7" HorizontalAlignment="Left" Grid.Row="0" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="0"/>
<Button x:Name="button_Eight" Content="8" HorizontalAlignment="Left" Grid.Row="0" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="1"/>
<Button x:Name="button_Nine" Content="9" HorizontalAlignment="Left" Grid.Row="0" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="2"/>
<Button x:Name="button_Divide" Content="÷" HorizontalAlignment="Left" Grid.Row="0" VerticalAlignment="Top" Width="50" Height="50" Margin="10,10,0,0" Grid.Column="3"/>
</Grid>
<TextBlock x:Name="textBlock_Disp" FontSize="18" TextAlignment="Right" HorizontalAlignment="Left" Height="46" Margin="174,39,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="268"/>

 


</Grid>
</Window>