Last active
June 25, 2016 08:02
-
-
Save gempir/34fd3518c8607e6a062655cf4f3d1b5d to your computer and use it in GitHub Desktop.
Xaml file for my battleships wpf application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Window x:Class="battleships.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="MainWindow" Height="625" Width="525" ResizeMode="NoResize"> | |
<Grid> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
</Grid.ColumnDefinitions> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="1*" /> | |
<RowDefinition Height="100" /> | |
</Grid.RowDefinitions> | |
<TextBlock Grid.Row="11" Grid.Column="1" Grid.ColumnSpan="10" Grid.RowSpan="3" x:Name="maintext" Background="DarkGray" Loaded="Output_Loaded" Text="" FontSize="18" Foreground="White" TextDecorations="{x:Null}" FontFamily="Arial" TextAlignment="Center"/> | |
<Button Grid.Row="11" Grid.Column="0" BorderThickness="0" x:Name="scoreboard"></Button> | |
<Button Grid.Column="0" Grid.Row="0" BorderThickness="0" Name="x0y0"></Button> | |
<Button Grid.Column="1" BorderThickness="0" Name="x1y0">0</Button> | |
<Button Grid.Column="2" BorderThickness="0" Name="x2y0">1</Button> | |
<Button Grid.Column="3" BorderThickness="0" Name="x3y0">2</Button> | |
<Button Grid.Column="4" BorderThickness="0" Name="x4y0">3</Button> | |
<Button Grid.Column="5" BorderThickness="0" Name="x5y0">4</Button> | |
<Button Grid.Column="6" BorderThickness="0" Name="x6y0">5</Button> | |
<Button Grid.Column="7" BorderThickness="0" Name="x7y0">6</Button> | |
<Button Grid.Column="8" BorderThickness="0" Name="x8y0">7</Button> | |
<Button Grid.Column="9" BorderThickness="0" Name="x9y0">8</Button> | |
<Button Grid.Column="10" BorderThickness="0" Name="x10y0">9</Button> | |
<Button Grid.Row="1" BorderThickness="0" Name="x0y1">A</Button> | |
<Button Grid.Row="2" BorderThickness="0" Name="x0y2">B</Button> | |
<Button Grid.Row="3" BorderThickness="0" Name="x0y3">C</Button> | |
<Button Grid.Row="4" BorderThickness="0" Name="x0y4">D</Button> | |
<Button Grid.Row="5" BorderThickness="0" Name="x0y5">E</Button> | |
<Button Grid.Row="6" BorderThickness="0" Name="x0y6">F</Button> | |
<Button Grid.Row="7" BorderThickness="0" Name="x0y7">G</Button> | |
<Button Grid.Row="8" BorderThickness="0" Name="x0y8">H</Button> | |
<Button Grid.Row="9" BorderThickness="0" Name="x0y9">I</Button> | |
<Button Grid.Row="10" BorderThickness="0" Name="x0y10">J</Button> | |
<Button Background="Green" Grid.Row="1" Grid.Column="1" BorderThickness="0" Name="x1y1" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="2" Grid.Column="1" BorderThickness="0" Name="x1y2" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="3" Grid.Column="1" BorderThickness="0" Name="x1y3" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="4" Grid.Column="1" BorderThickness="0" Name="x1y4" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="5" Grid.Column="1" BorderThickness="0" Name="x1y5" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="6" Grid.Column="1" BorderThickness="0" Name="x1y6" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="7" Grid.Column="1" BorderThickness="0" Name="x1y7" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="8" Grid.Column="1" BorderThickness="0" Name="x1y8" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="9" Grid.Column="1" BorderThickness="0" Name="x1y9" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="10" Grid.Column="1" BorderThickness="0" Name="x1y10" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="1" Grid.Column="2" BorderThickness="0" Name="x2y1" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="2" Grid.Column="2" BorderThickness="0" Name="x2y2" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="3" Grid.Column="2" BorderThickness="0" Name="x2y3" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="4" Grid.Column="2" BorderThickness="0" Name="x2y4" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="5" Grid.Column="2" BorderThickness="0" Name="x2y5" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="6" Grid.Column="2" BorderThickness="0" Name="x2y6" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="7" Grid.Column="2" BorderThickness="0" Name="x2y7" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="8" Grid.Column="2" BorderThickness="0" Name="x2y8" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="9" Grid.Column="2" BorderThickness="0" Name="x2y9" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="10" Grid.Column="2" BorderThickness="0" Name="x2y10" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="1" Grid.Column="3" BorderThickness="0" Name="x3y1" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="2" Grid.Column="3" BorderThickness="0" Name="x3y2" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="3" Grid.Column="3" BorderThickness="0" Name="x3y3" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="4" Grid.Column="3" BorderThickness="0" Name="x3y4" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="5" Grid.Column="3" BorderThickness="0" Name="x3y5" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="6" Grid.Column="3" BorderThickness="0" Name="x3y6" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="7" Grid.Column="3" BorderThickness="0" Name="x3y7" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="8" Grid.Column="3" BorderThickness="0" Name="x3y8" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="9" Grid.Column="3" BorderThickness="0" Name="x3y9" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="10" Grid.Column="3" BorderThickness="0" Name="x3y10" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="1" Grid.Column="4" BorderThickness="0" Name="x4y1" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="2" Grid.Column="4" BorderThickness="0" Name="x4y2" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="3" Grid.Column="4" BorderThickness="0" Name="x4y3" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="4" Grid.Column="4" BorderThickness="0" Name="x4y4" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="5" Grid.Column="4" BorderThickness="0" Name="x4y5" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="6" Grid.Column="4" BorderThickness="0" Name="x4y6" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="7" Grid.Column="4" BorderThickness="0" Name="x4y7" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="8" Grid.Column="4" BorderThickness="0" Name="x4y8" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="9" Grid.Column="4" BorderThickness="0" Name="x4y9" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="10" Grid.Column="4" BorderThickness="0" Name="x4y10" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="1" Grid.Column="5" BorderThickness="0" Name="x5y1" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="2" Grid.Column="5" BorderThickness="0" Name="x5y2" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="3" Grid.Column="5" BorderThickness="0" Name="x5y3" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="4" Grid.Column="5" BorderThickness="0" Name="x5y4" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="5" Grid.Column="5" BorderThickness="0" Name="x5y5" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="6" Grid.Column="5" BorderThickness="0" Name="x5y6" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="7" Grid.Column="5" BorderThickness="0" Name="x5y7" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="8" Grid.Column="5" BorderThickness="0" Name="x5y8" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="9" Grid.Column="5" BorderThickness="0" Name="x5y9" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="10" Grid.Column="5" BorderThickness="0" Name="x5y10" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="1" Grid.Column="6" BorderThickness="0" Name="x6y1" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="2" Grid.Column="6" BorderThickness="0" Name="x6y2" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="3" Grid.Column="6" BorderThickness="0" Name="x6y3" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="4" Grid.Column="6" BorderThickness="0" Name="x6y4" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="5" Grid.Column="6" BorderThickness="0" Name="x6y5" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="6" Grid.Column="6" BorderThickness="0" Name="x6y6" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="7" Grid.Column="6" BorderThickness="0" Name="x6y7" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="8" Grid.Column="6" BorderThickness="0" Name="x6y8" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="9" Grid.Column="6" BorderThickness="0" Name="x6y9" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="10" Grid.Column="6" BorderThickness="0" Name="x6y10" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="1" Grid.Column="7" BorderThickness="0" Name="x7y1" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="2" Grid.Column="7" BorderThickness="0" Name="x7y2" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="3" Grid.Column="7" BorderThickness="0" Name="x7y3" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="4" Grid.Column="7" BorderThickness="0" Name="x7y4" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="5" Grid.Column="7" BorderThickness="0" Name="x7y5" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="6" Grid.Column="7" BorderThickness="0" Name="x7y6" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="7" Grid.Column="7" BorderThickness="0" Name="x7y7" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="8" Grid.Column="7" BorderThickness="0" Name="x7y8" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="9" Grid.Column="7" BorderThickness="0" Name="x7y9" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="10" Grid.Column="7" BorderThickness="0" Name="x7y10" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="1" Grid.Column="8" BorderThickness="0" Name="x8y1" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="2" Grid.Column="8" BorderThickness="0" Name="x8y2" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="3" Grid.Column="8" BorderThickness="0" Name="x8y3" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="4" Grid.Column="8" BorderThickness="0" Name="x8y4" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="5" Grid.Column="8" BorderThickness="0" Name="x8y5" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="6" Grid.Column="8" BorderThickness="0" Name="x8y6" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="7" Grid.Column="8" BorderThickness="0" Name="x8y7" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="8" Grid.Column="8" BorderThickness="0" Name="x8y8" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="9" Grid.Column="8" BorderThickness="0" Name="x8y9" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="10" Grid.Column="8" BorderThickness="0" Name="x8y10" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="1" Grid.Column="9" BorderThickness="0" Name="x9y1" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="2" Grid.Column="9" BorderThickness="0" Name="x9y2" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="3" Grid.Column="9" BorderThickness="0" Name="x9y3" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="4" Grid.Column="9" BorderThickness="0" Name="x9y4" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="5" Grid.Column="9" BorderThickness="0" Name="x9y5" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="6" Grid.Column="9" BorderThickness="0" Name="x9y6" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="7" Grid.Column="9" BorderThickness="0" Name="x9y7" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="8" Grid.Column="9" BorderThickness="0" Name="x9y8" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="9" Grid.Column="9" BorderThickness="0" Name="x9y9" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="10" Grid.Column="9" BorderThickness="0" Name="x9y10" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="1" Grid.Column="10" BorderThickness="0" Name="x10y1" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="2" Grid.Column="10" BorderThickness="0" Name="x10y2" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="3" Grid.Column="10" BorderThickness="0" Name="x10y3" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="4" Grid.Column="10" BorderThickness="0" Name="x10y4" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="5" Grid.Column="10" BorderThickness="0" Name="x10y5" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="6" Grid.Column="10" BorderThickness="0" Name="x10y6" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="7" Grid.Column="10" BorderThickness="0" Name="x10y7" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="8" Grid.Column="10" BorderThickness="0" Name="x10y8" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="9" Grid.Column="10" BorderThickness="0" Name="x10y9" Click="handleFieldClick"></Button> | |
<Button Background="Green" Grid.Row="10" Grid.Column="10" BorderThickness="0" Name="x10y10" Click="handleFieldClick"></Button> | |
</Grid> | |
</Window> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment