This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainPage.xaml
64 lines (60 loc) · 2.93 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<Page
x:Class="Translate.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Translate"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
muxc:BackdropMaterial.ApplyToRootOrPageBackground="True">
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Rectangle VerticalAlignment="Top" Height="48" Fill="Transparent" x:Name="DragRegion"/>
<Grid x:Name="TitleBar" VerticalAlignment="Top" Height="48">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="LeftPaddingColumn" Width="0"/>
<ColumnDefinition/>
<ColumnDefinition x:Name="RightPaddingColumn" Width="0"/>
</Grid.ColumnDefinitions>
<Image Source="Assets/Square44x44Logo.altform-unplated_targetsize-16.png"
Grid.Column="1"
HorizontalAlignment="Left"
Width="16" Height="16"
Margin="48,0,0,0"/>
<TextBlock x:Name="AppTitleTextBlock"
Text="Translate"
Style="{StaticResource CaptionTextBlockStyle}"
Grid.Column="1"
Margin="72,0,0,0"
VerticalAlignment="Center"/>
</Grid>
<muxc:NavigationView x:Name="navview"
IsSettingsVisible="True"
IsBackButtonVisible="Auto"
IsBackEnabled="False"
Loaded="navview_Loaded"
SelectionChanged="navview_SelectionChanged"
AlwaysShowHeader="False"
PaneTitle=""
PaneDisplayMode="Left"
Margin="0,48,0,0"
ExpandedModeThresholdWidth="500"
VerticalAlignment="Stretch"
SelectionFollowsFocus="Enabled"
IsTabStop="False">
<muxc:NavigationView.MenuItems>
<muxc:NavigationViewItem Content="Translate" Tag="Translate" x:Name="TranslatePageButton">
<muxc:NavigationViewItem.Icon>
<FontIcon Glyph="" />
</muxc:NavigationViewItem.Icon>
</muxc:NavigationViewItem>
<muxc:NavigationViewItem Content="History" Tag="History" x:Name="HistoryPageButton" SelectsOnInvoked="True">
<muxc:NavigationViewItem.Icon>
<FontIcon Glyph="" />
</muxc:NavigationViewItem.Icon>
</muxc:NavigationViewItem>
</muxc:NavigationView.MenuItems>
<Frame x:Name="contentFrame" />
</muxc:NavigationView>
</Grid>
</Page>