-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
55 lines (48 loc) · 2.92 KB
/
Copy pathMainWindow.xaml
File metadata and controls
55 lines (48 loc) · 2.92 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<Window x:Class="DokuApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:View="clr-namespace:DokuApp.View"
mc:Ignorable="d"
Title="MainWindow" Height="600" Width="1000"
PreviewKeyDown="MainWindow_OnKeyDown"
PreviewKeyUp="MainWindow_OnKeyUp">
<Grid Margin="60">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<View:CompleteGrid x:Name="FullGrid" Grid.Column="0"/>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="25"/>
</Grid.RowDefinitions>
<View:EntryDock x:Name="Entries" Grid.Row="0" Width="310"/>
<Grid Grid.Row="1" Margin="40, 0">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Button Click="SolveGrid" Content="Solve Sudoku" Grid.Row="0" Grid.Column="0" FontSize="20" Margin="5" BorderThickness="5" BorderBrush="Black"/>
<Button Click="MarkCorners" Content="Mark Corners" Grid.Row="0" Grid.Column="1" FontSize="20" Margin="5" BorderThickness="5" BorderBrush="Black"/>
<Button Click="SolveStep" Content="Step >>>" Grid.Row="1" Grid.Column="1" FontSize="20" Margin="5" BorderThickness="5" BorderBrush="Black"/>
<Button Click="ClearNumbers" Content="Clear Numbers" Grid.Row="2" Grid.Column="0" FontSize="20" Margin="5" BorderThickness="5" BorderBrush="Black"/>
<Button Click="ClearPossibilities" Content="Clear Corners" Grid.Row="2" Grid.Column="1" FontSize="20" Margin="5" BorderThickness="5" BorderBrush="Black"/>
<Button Click="ClearGrid" Content="Clear Grid" Grid.Row="3" Grid.Column="0" FontSize="20" Margin="5" BorderThickness="5" BorderBrush="Black"/>
<Button Click="FullClearGrid" Content="Clear Grid (All)" Grid.Row="3" Grid.Column="1" FontSize="20" Margin="5" BorderThickness="5" BorderBrush="Black"/>
</Grid>
<TextBlock Name="LastSolutionText" Grid.Row="2" Text="Sample Last Solution Text" Margin="40, 0" FontSize="13"/>
</Grid>
</Grid>
</Grid>
</Window>