xaml

        <Button x:Name="g_1" HorizontalAlignment="Left" Height="100" Margin="220,27,0,0" VerticalAlignment="Top" Width="90" Background="Black" Foreground="Lime" Content="1" FontSize="36" Click="btn_ClickL" MouseRightButtonDown="btn_ClickR"/>
        <Button x:Name="g_2" HorizontalAlignment="Left" Height="100" Margin="340,27,0,0" VerticalAlignment="Top" Width="90" Background="Black" Foreground="Lime" Content="1" FontSize="36" Click="btn_ClickL" MouseRightButtonDown="btn_ClickR"/>
        <Button x:Name="g_3" HorizontalAlignment="Left" Height="100" Margin="460,27,0,0" VerticalAlignment="Top" Width="90" Background="Black" Foreground="Lime" Content="1" FontSize="36" Click="btn_ClickL" MouseRightButtonDown="btn_ClickR"/>
        <Button x:Name="g_4" HorizontalAlignment="Left" Height="100" Margin="580,27,0,0"  VerticalAlignment="Top" Width="90" Background="Black" Foreground="Lime" Content="1" FontSize="36" Click="btn_ClickL" MouseRightButtonDown="btn_ClickR"/> 

C# 코드

 

+ Recent posts