-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainPage.xaml
48 lines (47 loc) · 1.75 KB
/
MainPage.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="utf-8"?>
<Page
x:Class="PolicyManager.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:animatedVisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
DataContext="{x:Bind _dataContext}">
<Grid
HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid
Grid.Row="0"
VerticalAlignment="Center"
Margin="5"
ColumnSpacing="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button
Click="ButtonBase_OnClick"
Width="40"
IsEnabled="{Binding Path=CanGoBack}"
Style="{StaticResource BackButtonStyle}">
<AnimatedIcon>
<AnimatedIcon.Source>
<animatedVisuals:AnimatedBackVisualSource />
</AnimatedIcon.Source>
</AnimatedIcon>
</Button>
<TextBlock
Grid.Column="1"
Name="Placeholder"
Text="{Binding Path=ActivePageName}"
x:FieldModifier="internal"
VerticalAlignment="Center" />
</Grid>
<Frame Grid.Row="1" x:Name="MainFrame" x:FieldModifier="public" />
</Grid>
</Page>