53 lines
2.7 KiB
Plaintext
53 lines
2.7 KiB
Plaintext
|
<Window x:Class="TicTacToe.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:TicTacToe"
|
||
|
xmlns:c="clr-namespace:TicTacToe"
|
||
|
mc:Ignorable="d"
|
||
|
Title="MainWindow" Height="200" Width="200" ResizeMode="NoResize">
|
||
|
<Window.Resources>
|
||
|
<c:TicTacToeViewModel x:Key="viewModel" />
|
||
|
</Window.Resources>
|
||
|
<Grid DataContext="{StaticResource viewModel}">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="*" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="*" />
|
||
|
<RowDefinition Height="*" />
|
||
|
<RowDefinition Height="*" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Border BorderBrush="Black" BorderThickness="2" Grid.Row="0" Grid.Column="0">
|
||
|
<TextBlock Text="{ Binding Grid[0][0] }" Style="{ StaticResource Field }" />
|
||
|
</Border>
|
||
|
<Border BorderBrush="Black" BorderThickness="2" Grid.Row="1" Grid.Column="0">
|
||
|
<TextBlock Text="{ Binding Grid[0][1] }" Style="{ StaticResource Field }" />
|
||
|
</Border>
|
||
|
<Border BorderBrush="Black" BorderThickness="2" Grid.Row="2" Grid.Column="0">
|
||
|
<TextBlock Text="{ Binding Grid[0][2] }" Style="{ StaticResource Field }" />
|
||
|
</Border>
|
||
|
<Border BorderBrush="Black" BorderThickness="2" Grid.Row="0" Grid.Column="1">
|
||
|
<TextBlock Text="{ Binding Grid[1][0] }" Style="{ StaticResource Field }" />
|
||
|
</Border>
|
||
|
<Border BorderBrush="Black" BorderThickness="2" Grid.Row="1" Grid.Column="1">
|
||
|
<TextBlock Text="{ Binding Grid[1][1] }" Style="{ StaticResource Field }" />
|
||
|
</Border>
|
||
|
<Border BorderBrush="Black" BorderThickness="2" Grid.Row="2" Grid.Column="1">
|
||
|
<TextBlock Text="{ Binding Grid[1][2] }" Style="{ StaticResource Field }" />
|
||
|
</Border>
|
||
|
<Border BorderBrush="Black" BorderThickness="2" Grid.Row="0" Grid.Column="2">
|
||
|
<TextBlock Text="{ Binding Grid[2][0] }" Style="{ StaticResource Field }" />
|
||
|
</Border>
|
||
|
<Border BorderBrush="Black" BorderThickness="2" Grid.Row="1" Grid.Column="2">
|
||
|
<TextBlock Text="{ Binding Grid[2][1] }" Style="{ StaticResource Field }" />
|
||
|
</Border>
|
||
|
<Border BorderBrush="Black" BorderThickness="2" Grid.Row="2" Grid.Column="2">
|
||
|
<TextBlock Text="{ Binding Grid[2][2] }" Style="{ StaticResource Field }" />
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</Window>
|