Skip to content

Commit 9abd0b7

Browse files
authored
Add row and columns for improved layout
2 parents 6ece365 + 63ef248 commit 9abd0b7

1 file changed

Lines changed: 26 additions & 9 deletions

File tree

AnalyticHierarchyProcess/MainPage.xaml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,33 @@
77
mc:Ignorable="d"
88
d:DesignHeight="450" d:DesignWidth="800"
99
Title="MainPage">
10+
1011
<Grid>
11-
<Grid Height="430" Width="550" VerticalAlignment="Center" HorizontalAlignment="Center">
12-
<Label Content="AHP" HorizontalAlignment="Center" VerticalAlignment="Top" FontFamily="Segoe UI Semibold" FontSize="125" Foreground="#FF353B48" Margin="0,-20,0,0"/>
13-
<Label Content="Analytic Hierarchy Process" HorizontalAlignment="Center" Margin="0,125,0,0" VerticalAlignment="Top" FontSize="44" Foreground="#99353B48"/>
14-
<Button Click="OpenProject" Content="Open project" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,285,0,0" Height="60" Width="200" BorderBrush="#FF353B48" Foreground="#FF353B48" Background="White" BorderThickness="2,2,2,2" FontSize="25" FontFamily="Segoe UI Semibold"/>
15-
<Button Click="NewProject" Content="New project" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,210,0,0" Height="60" Width="200" BorderBrush="#FF353B48" Foreground="White" Background="#FF353B48" BorderThickness="2,2,2,2" FontSize="25" FontFamily="Segoe UI Semibold"/>
16-
</Grid>
17-
<Button Click="Help" Content="Help" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,50,40" Height="60" Width="150" BorderBrush="#FF353B48" Foreground="#FF353B48" Background="White" BorderThickness="2,2,2,2" FontSize="25" FontFamily="Segoe UI Semibold"/>
18-
<Button Click="Exit" Content="Exit" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="50,0,0,40" Height="60" Width="150" BorderBrush="#FF353B48" Foreground="#FF353B48" Background="White" BorderThickness="2,2,2,2" FontSize="25" FontFamily="Segoe UI Semibold"/>
19-
<Label Content="Created by Kaverin Maxim, 2023" HorizontalAlignment="Center" FontSize="20" Foreground="#7F353B48" Margin="0,0,0,40" VerticalAlignment="Bottom"/>
12+
<Grid.RowDefinitions>
13+
<RowDefinition Height="*"/>
14+
<RowDefinition Height="100"/>
15+
</Grid.RowDefinitions>
16+
<Grid.ColumnDefinitions>
17+
<ColumnDefinition Width="*"/>
18+
<ColumnDefinition Width="*"/>
19+
</Grid.ColumnDefinitions>
20+
21+
<StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10">
22+
<Label Content="AHP" HorizontalAlignment="Center" FontFamily="Segoe UI Semibold" FontSize="85" Foreground="#FF353B48" Margin="0,0,0,0"/>
23+
<Label Content="Analytic Hierarchy Process" HorizontalAlignment="Center" FontSize="32" Foreground="#99353B48" Margin="0,0,0,5"/>
24+
<Button Click="NewProject" Content="New project" HorizontalAlignment="Center" Margin="0,0,0,20" Height="60" Width="200" BorderBrush="#FF353B48" Foreground="White" Background="#FF353B48" BorderThickness="2" FontSize="20" FontFamily="Segoe UI Semibold"/>
25+
<Button Click="OpenProject" Content="Open project" HorizontalAlignment="Center" Height="60" Width="200" BorderBrush="#FF353B48" Foreground="#FF353B48" Background="White" BorderThickness="2" FontSize="20" FontFamily="Segoe UI Semibold"/>
26+
</StackPanel>
27+
28+
<StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20">
29+
<Button Click="Exit" Content="Exit" Height="60" Width="150" BorderBrush="#FF353B48" Foreground="#FF353B48" Background="White" BorderThickness="2" FontSize="20" FontFamily="Segoe UI Semibold"/>
30+
</StackPanel>
31+
32+
<StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="20">
33+
<Button Click="Help" Content="Help" Height="60" Width="150" BorderBrush="#FF353B48" Foreground="#FF353B48" Background="White" BorderThickness="2" FontSize="20" FontFamily="Segoe UI Semibold"/>
34+
</StackPanel>
35+
36+
<Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Content="Created by Kaverin Maxim, 2023" HorizontalAlignment="Center" FontSize="16" Foreground="#7F353B48" VerticalAlignment="Bottom" Margin="0,20,0,0"/>
2037

2138
</Grid>
2239
</Page>

0 commit comments

Comments
 (0)