-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
29 lines (29 loc) · 1.56 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Window
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:_15puzzle" x:Class="_15puzzle.MainWindow"
mc:Ignorable="d"
Title="15puzzle" Height="490" Width="415" ResizeMode="CanMinimize" >
<Grid x:Name="FieldGrid">
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition />
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Canvas Grid.Row="1" x:Name="CanvBoard" Width="400" Height="400" Background="White" />
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button x:Name="NewGameButton" Grid.Column="0" Width="100" Content="New Game" Click="NewGameButton_OnClick"/>
<TextBlock x:Name="StepsTextBlock" Grid.Column="1" Text="{Binding StepsCount, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MainWindow}}}" HorizontalAlignment="Center" FontSize="18" FontWeight="Bold"/>
<Button x:Name="SolveButton" Grid.Column="2" Width="100" Content="Solve" Click="SolveButton_OnClick"/>
</Grid>
<StatusBar Grid.Row="2">
<TextBlock x:Name="StatusTextBlock"/>
</StatusBar>
</Grid>
</Window>