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"
|
|
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" >
|
|
|
|
<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"
|
|
|
|
Source="{Binding MainMenuItems}" />
|
|
|
|
</Page.Resources>
|
2017-09-10 13:49:11 -04:00
|
|
|
|
2017-09-27 18:01:21 +02:00
|
|
|
<Grid Background="{ThemeResource 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"
|
|
|
|
x:Name="MenuListView"
|
|
|
|
SelectionChanged="ListView_SelectionChanged"
|
|
|
|
ItemsSource="{Binding Source={StaticResource MenuItemsSource}}">
|
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 >
|
|
|
|
<TextBlock Text="{Binding Title}" />
|
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-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>
|