Advertisement
Guest User

Untitled

a guest
May 25th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 31.08 KB | None | 0 0
  1. <Window x:Class="Draughts.MainWindow"
  2.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.        Title="Warcaby" Height="650" Width="550">
  5.     <Grid x:Name="Board" Height="400" Width="400" Margin="0,75,0,0" VirtualizingPanel.IsVirtualizing="False" VerticalAlignment="Top">
  6.         <Grid.ColumnDefinitions>
  7.             <ColumnDefinition/>
  8.             <ColumnDefinition/>
  9.             <ColumnDefinition/>
  10.             <ColumnDefinition/>
  11.             <ColumnDefinition/>
  12.             <ColumnDefinition/>
  13.             <ColumnDefinition/>
  14.             <ColumnDefinition/>
  15.         </Grid.ColumnDefinitions>
  16.         <Grid.RowDefinitions>
  17.             <RowDefinition/>
  18.             <RowDefinition/>
  19.             <RowDefinition/>
  20.             <RowDefinition/>
  21.             <RowDefinition/>
  22.             <RowDefinition/>
  23.             <RowDefinition/>
  24.             <RowDefinition/>
  25.         </Grid.RowDefinitions>
  26.  
  27.  
  28.  
  29.         <!--ROW 0-->
  30.  
  31.         <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">
  32.             <Border.Background>
  33.                 <ImageBrush ImageSource="white.jpg"/>
  34.             </Border.Background>
  35.             <!--<Image x:Name="blackA1" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
  36.         </Border>
  37.  
  38.         <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">
  39.             <StackPanel>
  40.                 <StackPanel.Background>
  41.                     <ImageBrush ImageSource="black.jpg"/>
  42.                 </StackPanel.Background>
  43.                 <Image Source="blackPiece.png"/>
  44.             </StackPanel>
  45.         </Button>
  46.  
  47.         <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">
  48.             <Border.Background>
  49.                 <ImageBrush ImageSource="white.jpg"/>
  50.             </Border.Background>
  51.             <!--<Image x:Name="blackC1" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
  52.  
  53.         </Border>
  54.  
  55.         <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">
  56.             <StackPanel>
  57.                 <StackPanel.Background>
  58.                     <ImageBrush ImageSource="black.jpg"/>
  59.                 </StackPanel.Background>
  60.                 <Image Source="blackPiece.png"/>
  61.             </StackPanel>
  62.         </Button>
  63.  
  64.         <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">
  65.             <Border.Background>
  66.                 <ImageBrush ImageSource="white.jpg"/>
  67.             </Border.Background>
  68.             <!--<Image x:Name="blackE1" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
  69.  
  70.         </Border>
  71.  
  72.         <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">
  73.             <StackPanel>
  74.                 <StackPanel.Background>
  75.                     <ImageBrush ImageSource="black.jpg"/>
  76.                 </StackPanel.Background>
  77.                 <Image Source="blackPiece.png"/>
  78.             </StackPanel>
  79.         </Button>
  80.  
  81.         <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">
  82.             <Border.Background>
  83.                 <ImageBrush ImageSource="white.jpg"/>
  84.             </Border.Background>
  85.             <!--<Image x:Name="blackG1" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
  86.  
  87.         </Border>
  88.  
  89.         <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">
  90.             <StackPanel>
  91.                 <StackPanel.Background>
  92.                     <ImageBrush ImageSource="black.jpg"/>
  93.                 </StackPanel.Background>
  94.                 <Image Source="blackPiece.png"/>
  95.             </StackPanel>
  96.         </Button>
  97.  
  98.  
  99.  
  100.         <!--ROW 1-->
  101.         <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">
  102.             <StackPanel>
  103.                 <StackPanel.Background>
  104.                     <ImageBrush ImageSource="black.jpg"/>
  105.                 </StackPanel.Background>
  106.                 <Image Source="blackPiece.png"/>
  107.             </StackPanel>
  108.         </Button>
  109.  
  110.         <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">
  111.             <Border.Background>
  112.                 <ImageBrush ImageSource="white.jpg"/>
  113.             </Border.Background>
  114.             <!--<Image x:Name="blackB2" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
  115.  
  116.         </Border>
  117.  
  118.         <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">
  119.             <StackPanel>
  120.                 <StackPanel.Background>
  121.                     <ImageBrush ImageSource="black.jpg"/>
  122.                 </StackPanel.Background>
  123.                 <Image Source="blackPiece.png"/>
  124.             </StackPanel>
  125.         </Button>
  126.  
  127.         <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">
  128.             <Border.Background>
  129.                 <ImageBrush ImageSource="white.jpg"/>
  130.             </Border.Background>
  131.             <!--<Image x:Name="blackD2" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
  132.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  133.         </Border>
  134.  
  135.         <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">
  136.             <StackPanel>
  137.                 <StackPanel.Background>
  138.                     <ImageBrush ImageSource="black.jpg"/>
  139.                 </StackPanel.Background>
  140.                 <Image Source="blackPiece.png"/>
  141.             </StackPanel>
  142.         </Button>
  143.  
  144.         <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">
  145.             <Border.Background>
  146.                 <ImageBrush ImageSource="white.jpg"/>
  147.             </Border.Background>
  148.             <!--<Image x:Name="blackF2" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
  149.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  150.         </Border>
  151.  
  152.         <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">
  153.             <StackPanel>
  154.                 <StackPanel.Background>
  155.                     <ImageBrush ImageSource="black.jpg"/>
  156.                 </StackPanel.Background>
  157.                 <Image Source="blackPiece.png"/>
  158.             </StackPanel>
  159.         </Button>
  160.  
  161.         <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">
  162.             <Border.Background>
  163.                 <ImageBrush ImageSource="white.jpg"/>
  164.             </Border.Background>
  165.             <!--<Image x:Name="blackH2" HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30"/>-->
  166.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  167.         </Border>
  168.  
  169.  
  170.         <!--ROW 2-->
  171.         <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">
  172.             <Border.Background>
  173.                 <ImageBrush ImageSource="white.jpg"/>
  174.             </Border.Background>
  175.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  176.         </Border>
  177.  
  178.         <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">
  179.             <StackPanel>
  180.                 <StackPanel.Background>
  181.                     <ImageBrush ImageSource="black.jpg"/>
  182.                 </StackPanel.Background>
  183.                 <Image Source="blackPiece.png"/>
  184.             </StackPanel>
  185.         </Button>
  186.  
  187.         <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">
  188.             <Border.Background>
  189.                 <ImageBrush ImageSource="white.jpg"/>
  190.             </Border.Background>
  191.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  192.         </Border>
  193.  
  194.         <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">
  195.             <StackPanel>
  196.                 <StackPanel.Background>
  197.                     <ImageBrush ImageSource="black.jpg"/>
  198.                 </StackPanel.Background>
  199.                 <Image Source="blackPiece.png"/>
  200.             </StackPanel>
  201.         </Button>
  202.  
  203.         <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">
  204.             <Border.Background>
  205.                 <ImageBrush ImageSource="white.jpg"/>
  206.             </Border.Background>
  207.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  208.         </Border>
  209.  
  210.         <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">
  211.             <StackPanel>
  212.                 <StackPanel.Background>
  213.                     <ImageBrush ImageSource="black.jpg"/>
  214.                 </StackPanel.Background>
  215.                 <Image Source="blackPiece.png"/>
  216.             </StackPanel>
  217.         </Button>
  218.  
  219.         <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">
  220.             <Border.Background>
  221.                 <ImageBrush ImageSource="white.jpg"/>
  222.             </Border.Background>
  223.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  224.         </Border>
  225.  
  226.         <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">
  227.             <StackPanel>
  228.                 <StackPanel.Background>
  229.                     <ImageBrush ImageSource="black.jpg"/>
  230.                 </StackPanel.Background>
  231.                 <Image Source="blackPiece.png"/>
  232.             </StackPanel>
  233.         </Button>
  234.  
  235.  
  236.         <!--ROW 3-->
  237.         <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">
  238.             <StackPanel>
  239.                 <StackPanel.Background>
  240.                     <ImageBrush ImageSource="black.jpg"/>
  241.                 </StackPanel.Background>
  242.                 <Image Source="black.jpg"/>
  243.             </StackPanel>
  244.         </Button>
  245.  
  246.         <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">
  247.             <Border.Background>
  248.                 <ImageBrush ImageSource="white.jpg"/>
  249.             </Border.Background>
  250.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  251.         </Border>
  252.  
  253.         <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">
  254.             <StackPanel>
  255.                 <StackPanel.Background>
  256.                     <ImageBrush ImageSource="black.jpg"/>
  257.                 </StackPanel.Background>
  258.                 <Image Source="black.jpg"/>
  259.             </StackPanel>
  260.         </Button>
  261.         <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">
  262.             <Border.Background>
  263.                 <ImageBrush ImageSource="white.jpg"/>
  264.             </Border.Background>
  265.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  266.         </Border>
  267.  
  268.         <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">
  269.             <StackPanel>
  270.                 <StackPanel.Background>
  271.                     <ImageBrush ImageSource="black.jpg"/>
  272.                 </StackPanel.Background>
  273.                 <Image Source="black.jpg"/>
  274.             </StackPanel>
  275.         </Button>
  276.  
  277.         <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">
  278.             <Border.Background>
  279.                 <ImageBrush ImageSource="white.jpg"/>
  280.             </Border.Background>
  281.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  282.         </Border>
  283.  
  284.         <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">
  285.             <StackPanel>
  286.                 <StackPanel.Background>
  287.                     <ImageBrush ImageSource="black.jpg"/>
  288.                 </StackPanel.Background>
  289.                 <Image Source="black.jpg"/>
  290.             </StackPanel>
  291.         </Button>
  292.  
  293.         <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">
  294.             <Border.Background>
  295.                 <ImageBrush ImageSource="white.jpg"/>
  296.             </Border.Background>
  297.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  298.         </Border>
  299.  
  300.  
  301.         <!--ROW 4-->
  302.  
  303.         <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" >
  304.             <Border.Background>
  305.                 <ImageBrush ImageSource="white.jpg"/>
  306.             </Border.Background>
  307.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  308.         </Border>
  309.        
  310.         <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">
  311.             <StackPanel>
  312.                 <StackPanel.Background>
  313.                     <ImageBrush ImageSource="black.jpg"/>
  314.                 </StackPanel.Background>
  315.                 <Image Source="black.jpg"/>
  316.             </StackPanel>
  317.         </Button>
  318.  
  319.         <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">
  320.             <Border.Background>
  321.                 <ImageBrush ImageSource="white.jpg"/>
  322.             </Border.Background>
  323.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  324.         </Border>
  325.  
  326.         <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">
  327.             <StackPanel>
  328.                 <StackPanel.Background>
  329.                     <ImageBrush ImageSource="black.jpg"/>
  330.                 </StackPanel.Background>
  331.                 <Image Source="black.jpg"/>
  332.             </StackPanel>
  333.         </Button>
  334.  
  335.         <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">
  336.             <Border.Background>
  337.                 <ImageBrush ImageSource="white.jpg"/>
  338.             </Border.Background>
  339.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  340.         </Border>
  341.  
  342.         <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">
  343.             <StackPanel>
  344.                 <StackPanel.Background>
  345.                     <ImageBrush ImageSource="black.jpg"/>
  346.                 </StackPanel.Background>
  347.                 <Image Source="black.jpg"/>
  348.             </StackPanel>
  349.         </Button>
  350.  
  351.         <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">
  352.             <Border.Background>
  353.                 <ImageBrush ImageSource="white.jpg"/>
  354.             </Border.Background>
  355.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  356.         </Border>
  357.  
  358.         <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">
  359.             <StackPanel>
  360.                 <StackPanel.Background>
  361.                     <ImageBrush ImageSource="black.jpg"/>
  362.                 </StackPanel.Background>
  363.                 <Image Source="black.jpg"/>
  364.             </StackPanel>
  365.         </Button>
  366.  
  367.  
  368.         <!--ROW 5-->
  369.         <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">
  370.             <StackPanel>
  371.                 <StackPanel.Background>
  372.                     <ImageBrush ImageSource="black.jpg"/>
  373.                 </StackPanel.Background>
  374.                 <Image Source="whitePiece.png"/>
  375.             </StackPanel>
  376.         </Button>
  377.  
  378.         <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">
  379.             <Border.Background>
  380.                 <ImageBrush ImageSource="white.jpg"/>
  381.             </Border.Background>
  382.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  383.         </Border>
  384.  
  385.         <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">
  386.             <StackPanel>
  387.                 <StackPanel.Background>
  388.                     <ImageBrush ImageSource="black.jpg"/>
  389.                 </StackPanel.Background>
  390.                 <Image Source="whitePiece.png"/>
  391.             </StackPanel>
  392.         </Button>
  393.  
  394.         <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">
  395.             <Border.Background>
  396.                 <ImageBrush ImageSource="white.jpg"/>
  397.             </Border.Background>
  398.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  399.         </Border>
  400.  
  401.         <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">
  402.             <StackPanel>
  403.                 <StackPanel.Background>
  404.                     <ImageBrush ImageSource="black.jpg"/>
  405.                 </StackPanel.Background>
  406.                 <Image Source="whitePiece.png"/>
  407.             </StackPanel>
  408.         </Button>
  409.  
  410.         <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">
  411.             <Border.Background>
  412.                 <ImageBrush ImageSource="white.jpg"/>
  413.             </Border.Background>
  414.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  415.         </Border>
  416.  
  417.         <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">
  418.             <StackPanel>
  419.                 <StackPanel.Background>
  420.                     <ImageBrush ImageSource="black.jpg"/>
  421.                 </StackPanel.Background>
  422.                 <Image Source="whitePiece.png"/>
  423.             </StackPanel>
  424.         </Button>
  425.  
  426.         <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">
  427.             <Border.Background>
  428.                 <ImageBrush ImageSource="white.jpg"/>
  429.             </Border.Background>
  430.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  431.         </Border>
  432.  
  433.  
  434.         <!--ROW 6-->
  435.  
  436.         <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">
  437.             <Border.Background>
  438.                 <ImageBrush ImageSource="white.jpg"/>
  439.             </Border.Background>
  440.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  441.         </Border>
  442.  
  443.         <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">
  444.             <StackPanel>
  445.                 <StackPanel.Background>
  446.                     <ImageBrush ImageSource="black.jpg"/>
  447.                 </StackPanel.Background>
  448.                 <Image Source="whitePiece.png"/>
  449.             </StackPanel>
  450.         </Button>
  451.  
  452.         <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">
  453.             <Border.Background>
  454.                 <ImageBrush ImageSource="white.jpg"/>
  455.             </Border.Background>
  456.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  457.         </Border>
  458.  
  459.         <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">
  460.             <StackPanel>
  461.                 <StackPanel.Background>
  462.                     <ImageBrush ImageSource="black.jpg"/>
  463.                 </StackPanel.Background>
  464.                 <Image Source="whitePiece.png"/>
  465.             </StackPanel>
  466.         </Button>
  467.  
  468.         <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" >
  469.             <Border.Background>
  470.                 <ImageBrush ImageSource="white.jpg"/>
  471.             </Border.Background>
  472.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  473.         </Border>
  474.  
  475.         <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">
  476.             <StackPanel>
  477.                 <StackPanel.Background>
  478.                     <ImageBrush ImageSource="black.jpg"/>
  479.                 </StackPanel.Background>
  480.                 <Image Source="whitePiece.png"/>
  481.             </StackPanel>
  482.         </Button>
  483.  
  484.         <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">
  485.             <Border.Background>
  486.                 <ImageBrush ImageSource="white.jpg"/>
  487.             </Border.Background>
  488.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  489.         </Border>
  490.  
  491.         <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">
  492.             <StackPanel>
  493.                 <StackPanel.Background>
  494.                     <ImageBrush ImageSource="black.jpg"/>
  495.                 </StackPanel.Background>
  496.                 <Image Source="whitePiece.png"/>
  497.             </StackPanel>
  498.         </Button>
  499.  
  500.  
  501.  
  502.  
  503.         <!--ROW 7-->
  504.         <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">
  505.             <StackPanel>
  506.                 <StackPanel.Background>
  507.                     <ImageBrush ImageSource="black.jpg"/>
  508.                 </StackPanel.Background>
  509.                 <Image Source="whitePiece.png"/>
  510.             </StackPanel>
  511.         </Button>
  512.  
  513.         <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">
  514.             <Border.Background>
  515.                 <ImageBrush ImageSource="white.jpg"/>
  516.             </Border.Background>
  517.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  518.         </Border>
  519.  
  520.         <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">
  521.             <StackPanel>
  522.                 <StackPanel.Background>
  523.                     <ImageBrush ImageSource="black.jpg"/>
  524.                 </StackPanel.Background>
  525.                 <Image Source="whitePiece.png"/>
  526.             </StackPanel>
  527.         </Button>
  528.  
  529.         <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">
  530.             <Border.Background>
  531.                 <ImageBrush ImageSource="white.jpg"/>
  532.             </Border.Background>
  533.             <!--<Image HorizontalAlignment="Left" Height="30" Margin="9,9,0,0" VerticalAlignment="Top" Width="30" Source="blackPiece.png"/>-->
  534.         </Border>
  535.  
  536.         <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">
  537.             <StackPanel>
  538.                 <StackPanel.Background>
  539.                     <ImageBrush ImageSource="black.jpg"/>
  540.                 </StackPanel.Background>
  541.                 <Image Source="whitePiece.png"/>
  542.             </StackPanel>
  543.         </Button>
  544.  
  545.         <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">
  546.             <Border.Background>
  547.                 <ImageBrush ImageSource="white.jpg"/>
  548.             </Border.Background>
  549.         </Border>
  550.  
  551.         <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">
  552.             <StackPanel>
  553.                 <StackPanel.Background>
  554.                     <ImageBrush ImageSource="black.jpg"/>
  555.                 </StackPanel.Background>
  556.                 <Image Source="whitePiece.png"/>
  557.             </StackPanel>
  558.         </Button>
  559.  
  560.         <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">
  561.             <Border.Background>
  562.                 <ImageBrush ImageSource="white.jpg"/>
  563.             </Border.Background>
  564.         </Border>
  565.  
  566.     </Grid>
  567. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement