2017-09-10 13:49:11 -04:00
|
|
|
<Page
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
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"
|
2017-09-27 18:01:21 +02:00
|
|
|
xmlns:viewModels="using:ModernKeePass.ViewModels"
|
|
|
|
xmlns:controls="using:ModernKeePass.Controls"
|
2017-09-15 15:58:51 +02:00
|
|
|
x:Class="ModernKeePass.MainPage"
|
|
|
|
mc:Ignorable="d"
|
2017-10-06 16:33:44 +02:00
|
|
|
Background="{StaticResource ApplicationPageBackgroundThemeBrush}" >
|
2017-09-15 15:58:51 +02:00
|
|
|
<Page.DataContext>
|
2017-09-27 18:01:21 +02:00
|
|
|
<viewModels:MainVm />
|
2017-09-15 15:58:51 +02:00
|
|
|
</Page.DataContext>
|
2017-09-27 18:01:21 +02:00
|
|
|
<Page.Resources>
|
|
|
|
<CollectionViewSource
|
|
|
|
x:Name="MenuItemsSource"
|
2017-10-03 16:06:49 +02:00
|
|
|
Source="{Binding MainMenuItems}"
|
|
|
|
IsSourceGrouped="True" />
|
2017-09-27 18:01:21 +02:00
|
|
|
</Page.Resources>
|
2017-09-10 13:49:11 -04:00
|
|
|
|
2017-10-06 16:33:44 +02:00
|
|
|
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}" >
|
2017-09-15 15:58:51 +02:00
|
|
|
<Grid.ColumnDefinitions>
|
2017-09-20 18:19:00 +02:00
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="50" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2017-09-15 15:58:51 +02:00
|
|
|
</Grid.ColumnDefinitions>
|
2017-09-27 18:01:21 +02:00
|
|
|
<controls:ListViewWithDisable Grid.Column="0"
|
2017-10-06 16:33:44 +02:00
|
|
|
x:Name="MenuListView"
|
|
|
|
RequestedTheme="Light"
|
|
|
|
SelectionChanged="ListView_SelectionChanged"
|
|
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
|
|
|
ItemsSource="{Binding Source={StaticResource MenuItemsSource}}"
|
|
|
|
IsSynchronizedWithCurrentItem="False">
|
2017-09-20 18:19:00 +02:00
|
|
|
<ListView.Header>
|
2017-09-27 18:01:21 +02:00
|
|
|
<TextBlock Text="ModernKeePass" FontWeight="Bold" FontSize="36" Margin="20" />
|
2017-09-20 18:19:00 +02:00
|
|
|
</ListView.Header>
|
2017-09-27 18:01:21 +02:00
|
|
|
<ListView.ItemTemplate>
|
|
|
|
<DataTemplate >
|
2017-09-29 18:08:20 +02:00
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<SymbolIcon Symbol="{Binding SymbolIcon}" />
|
|
|
|
<TextBlock Text="{Binding Title}" Margin="10,5,0,0" />
|
|
|
|
</StackPanel>
|
2017-09-20 18:19:00 +02:00
|
|
|
</DataTemplate>
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
<ListView.ItemContainerStyle>
|
|
|
|
<Style TargetType="ListViewItem">
|
2017-09-27 18:01:21 +02:00
|
|
|
<Setter Property="Padding" Value="20,5,0,0" />
|
2017-09-20 18:19:00 +02:00
|
|
|
</Style>
|
|
|
|
</ListView.ItemContainerStyle>
|
2017-09-28 17:51:30 +02:00
|
|
|
<ListView.GroupStyle>
|
|
|
|
<GroupStyle HidesIfEmpty="True">
|
|
|
|
<GroupStyle.HeaderTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid Background="DarkGray" Margin="20,0,0,0">
|
|
|
|
<Border Height="1" Width="240" HorizontalAlignment="Stretch"/>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</GroupStyle.HeaderTemplate>
|
|
|
|
</GroupStyle>
|
|
|
|
</ListView.GroupStyle>
|
2017-09-27 18:01:21 +02:00
|
|
|
</controls:ListViewWithDisable>
|
|
|
|
<Frame Grid.Column="2" Name="MenuFrame" Width="auto" Margin="0,60,0,0" />
|
2017-09-10 13:49:11 -04:00
|
|
|
</Grid>
|
|
|
|
</Page>
|