-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.xaml
74 lines (70 loc) · 2.64 KB
/
MainWindow.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
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="Podkast.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Podkast"
Title="Podkast"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Window.SystemBackdrop>
<MicaBackdrop />
</Window.SystemBackdrop>
<Grid>
<Grid x:Name="AppTitleBar"
Height="48"
Margin="48,0,0,0"
VerticalAlignment="Top"
Padding="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Image
x:Name="TitleBarIcon"
Width="20"
Height="20"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Source="/Assets/Blue-Logo.ico" />
<TextBlock
Margin="12,0,0,0"
Grid.Column="1"
VerticalAlignment="Center"
Style="{StaticResource CaptionTextBlockStyle}"
Text="Podkast AI"/>
</Grid>
<NavigationView x:Name="nvSample"
IsTitleBarAutoPaddingEnabled="False"
AlwaysShowHeader="False"
Header=""
IsTabStop="False" >
<NavigationView.HeaderTemplate>
<DataTemplate>
<Grid Margin="0,-10,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid x:Name="pageTitle"
Background="Transparent"
Height="44"
VerticalAlignment="Top">
<TextBlock x:Name="title"
Style="{StaticResource TitleTextBlockStyle}"
FontSize="24"
VerticalAlignment="Center"
Text="{Binding}"/>
</Grid>
</Grid>
</DataTemplate>
</NavigationView.HeaderTemplate>
<NavigationView.MenuItems>
<NavigationViewItem Icon="Home" Content="Home" Tag="HomePage" />
<NavigationViewItem Icon="Play" Content="Podkasts" Tag="PodkastPage" />
</NavigationView.MenuItems>
<Frame x:Name="contentFrame"/>
</NavigationView>
</Grid>
</Window>