This repository was archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomGame.axaml
95 lines (80 loc) · 3.22 KB
/
CustomGame.axaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<Window xmlns="https://github.com/avaloniaui"
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"
mc:Ignorable="d"
d:DesignWidth="800"
d:DesignHeight="450"
x:Class="Minesweeper.CustomGame"
Title="Выбор поля"
CanResize="False"
SizeToContent="WidthAndHeight">
<Grid Background="#000000"
Opacity=".2"
Width="200"
Height="150"
RowDefinitions="*, Auto">
<Grid Row="0"
RowDefinitions="*, *, *"
ColumnDefinitions="Auto, *">
<TextBlock Grid.Row="0"
Grid.Column="0"
Text="Высота:"
VerticalAlignment="Center"
Margin="5, 0"/>
<NumericUpDown Grid.Row="0"
Grid.Column="1"
Name="FieldHeight"
ShowButtonSpinner="False"
AllowSpin="True"
ParsingNumberStyle="Integer"
ClipValueToMinMax="True"
VerticalContentAlignment="Center"
Minimum="9"
Maximum="24"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"/>
<TextBlock Grid.Row="1"
Grid.Column="0"
Text="Ширина:"
VerticalAlignment="Center"
Margin="5, 0"/>
<NumericUpDown Grid.Row="1"
Grid.Column="1"
Name="FieldWidth"
ShowButtonSpinner="False"
AllowSpin="True"
ParsingNumberStyle="Integer"
ClipValueToMinMax="True"
VerticalContentAlignment="Center"
Minimum="9"
Maximum="36"/>
<TextBlock Grid.Row="2"
Grid.Column="0"
Text="Мин:"
VerticalAlignment="Center"
Margin="5, 0"/>
<NumericUpDown Grid.Row="2"
Grid.Column="1"
Name="MinesOnField"
ShowButtonSpinner="False"
AllowSpin="True"
ParsingNumberStyle="Integer"
ClipValueToMinMax="True"
VerticalContentAlignment="Center"
Minimum="10"/>
</Grid>
<Grid Row="1"
ColumnDefinitions="*, *"
HorizontalAlignment="Center">
<Button Grid.Column="0"
Name="Ok"
Content="Ок"
Width="100"/>
<Button Grid.Column="1"
Name="Cancel"
Content="Отмена"
Width="100"/>
</Grid>
</Grid>
</Window>