Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="Draughts.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="Warcaby" Height="650" Width="550">
- <Grid x:Name="Board" Height="400" Width="400" Margin="0,75,0,0" VirtualizingPanel.IsVirtualizing="False" VerticalAlignment="Top">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <!--ROW 0-->
- <Border x:Name="A8" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="0" Grid.Column="0">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image x:Name="blackA1" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
- </Border>
- <Button x:Name="B8" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="0" Grid.Column="1" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="C8" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="0" Grid.Column="2">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image x:Name="blackC1" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
- </Border>
- <Button x:Name="D8" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="0" Grid.Column="3" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="E8" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="0" Grid.Column="4">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image x:Name="blackE1" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
- </Border>
- <Button x:Name="F8" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="0" Grid.Column="5" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="G8" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="0" Grid.Column="6">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image x:Name="blackG1" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
- </Border>
- <Button x:Name="H8" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="0" Grid.Column="7" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <!--ROW 1-->
- <Button x:Name="A7" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="1" Grid.Column="0" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="B7" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="1" Grid.Column="1">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image x:Name="blackB2" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
- </Border>
- <Button x:Name="C7" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="1" Grid.Column="2" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="D7" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="1" Grid.Column="3">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image x:Name="blackD2" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="E7" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="1" Grid.Column="4" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="F7" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="1" Grid.Column="5">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image x:Name="blackF2" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="G7" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="1" Grid.Column="6" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="H7" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="1" Grid.Column="7">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image x:Name="blackH2" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <!--ROW 2-->
- <Border x:Name="A6" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="2" Grid.Column="0">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="B6" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="2" Grid.Column="1" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="C6" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="2" Grid.Column="2">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="D6" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="2" Grid.Column="3" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="E6" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="2" Grid.Column="4">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="F6" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="2" Grid.Column="5" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="G6" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="2" Grid.Column="6">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="H6" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="2" Grid.Column="7" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="blackPiece.png"/>
- </StackPanel>
- </Button>
- <!--ROW 3-->
- <Button x:Name="A5" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="3" Grid.Column="0" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="black.jpg"/>
- </StackPanel>
- </Button>
- <Border x:Name="B5" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="3" Grid.Column="1">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="C5" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="3" Grid.Column="2" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="black.jpg"/>
- </StackPanel>
- </Button>
- <Border x:Name="D5" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="3" Grid.Column="3">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="E5" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="3" Grid.Column="4" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="black.jpg"/>
- </StackPanel>
- </Button>
- <Border x:Name="F5" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="3" Grid.Column="5">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="G5" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="3" Grid.Column="6" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="black.jpg"/>
- </StackPanel>
- </Button>
- <Border x:Name="H5" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="3" Grid.Column="7">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <!--ROW 4-->
- <Border x:Name="A4" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="4" Grid.Column="0" >
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="B4" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="4" Grid.Column="1" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="black.jpg"/>
- </StackPanel>
- </Button>
- <Border x:Name="C4" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="4" Grid.Column="2">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="D4" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="4" Grid.Column="3" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="black.jpg"/>
- </StackPanel>
- </Button>
- <Border x:Name="E4" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="4" Grid.Column="4">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="F4" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="4" Grid.Column="5" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="black.jpg"/>
- </StackPanel>
- </Button>
- <Border x:Name="G4" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="4" Grid.Column="6">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="H4" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="4" Grid.Column="7" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="black.jpg"/>
- </StackPanel>
- </Button>
- <!--ROW 5-->
- <Button x:Name="A3" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="5" Grid.Column="0" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="B3" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="5" Grid.Column="1">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="C3" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="5" Grid.Column="2" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="D3" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="5" Grid.Column="3">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="E3" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="5" Grid.Column="4" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="F3" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="5" Grid.Column="5">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="G3" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="5" Grid.Column="6" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="H3" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="5" Grid.Column="7">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <!--ROW 6-->
- <Border x:Name="A2" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="6" Grid.Column="0">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="B2" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="6" Grid.Column="1" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="C2" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="6" Grid.Column="2">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="D2" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="6" Grid.Column="3" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="E2" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="6" Grid.Column="4" >
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="F2" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="6" Grid.Column="5" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="G2" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="6" Grid.Column="6">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="H2" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="6" Grid.Column="7" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <!--ROW 7-->
- <Button x:Name="A1" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="7" Grid.Column="0" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="B1" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="7" Grid.Column="1">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="C1" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="7" Grid.Column="2" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="D1" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="7" Grid.Column="3">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
- </Border>
- <Button x:Name="E1" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="7" Grid.Column="4" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="F1" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="7" Grid.Column="5">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- </Border>
- <Button x:Name="G1" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="7" Grid.Column="6" Click="Button_Click">
- <StackPanel>
- <StackPanel.Background>
- <ImageBrush ImageSource="black.jpg"/>
- </StackPanel.Background>
- <Image Source="whitePiece.png"/>
- </StackPanel>
- </Button>
- <Border x:Name="H1" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Margin="0,0,0,0" Width="50" Grid.Row="7" Grid.Column="7">
- <Border.Background>
- <ImageBrush ImageSource="white.jpg"/>
- </Border.Background>
- </Border>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement