2017-09-12 18:20:32 +02:00
|
|
|
<Page
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:local="using:ModernKeePass.Pages"
|
|
|
|
xmlns:common="using:ModernKeePass.Common"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:ViewModels="using:ModernKeePass.ViewModels"
|
|
|
|
x:Name="pageRoot"
|
2017-09-13 18:37:44 +02:00
|
|
|
x:Class="ModernKeePass.Pages.GroupDetailPage"
|
|
|
|
DataContext="{Binding ViewModel, Mode=OneWay, RelativeSource={RelativeSource Mode=Self}}"
|
2017-09-12 18:20:32 +02:00
|
|
|
mc:Ignorable="d">
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
<Grid.ChildrenTransitions>
|
|
|
|
<TransitionCollection>
|
|
|
|
<EntranceThemeTransition/>
|
|
|
|
</TransitionCollection>
|
|
|
|
</Grid.ChildrenTransitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="140"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
2017-09-13 18:37:44 +02:00
|
|
|
<Grid.Resources>
|
|
|
|
<CollectionViewSource
|
|
|
|
x:Name="itemsViewSource"
|
|
|
|
Source="{Binding Groups}"/>
|
|
|
|
</Grid.Resources>
|
2017-09-12 18:20:32 +02:00
|
|
|
<!-- Horizontal scrolling grid -->
|
|
|
|
<GridView
|
|
|
|
x:Name="itemGridView"
|
|
|
|
AutomationProperties.AutomationId="ItemGridView"
|
|
|
|
AutomationProperties.Name="Groups"
|
|
|
|
TabIndex="1"
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
Padding="120,126,120,50"
|
|
|
|
ItemsSource="{Binding Source={StaticResource itemsViewSource}}"
|
|
|
|
SelectionMode="None"
|
|
|
|
IsSwipeEnabled="false">
|
|
|
|
<GridView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid Height="110" Width="480" Margin="10">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border Background="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}" Width="110" Height="110">
|
|
|
|
<Image Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/>
|
|
|
|
</Border>
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Top" Margin="10,0,0,0">
|
2017-09-13 18:37:44 +02:00
|
|
|
<TextBlock Text="{Binding Name}" Style="{StaticResource TitleTextBlockStyle}" TextWrapping="NoWrap"/>
|
2017-09-12 18:20:32 +02:00
|
|
|
<TextBlock Style="{StaticResource CaptionTextBlockStyle}" TextWrapping="NoWrap"/>
|
2017-09-13 18:37:44 +02:00
|
|
|
<TextBlock Text="{Binding EntryCount}" Style="{StaticResource BodyTextBlockStyle}" MaxHeight="60"/>
|
2017-09-12 18:20:32 +02:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridView.ItemTemplate>
|
|
|
|
<GridView.Header>
|
|
|
|
<StackPanel Width="480" Margin="0,4,14,0">
|
|
|
|
<TextBlock Margin="0,0,0,20" Style="{StaticResource SubheaderTextBlockStyle}" MaxHeight="60"/>
|
|
|
|
<Image Height="400" Margin="0,0,0,20" Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/>
|
|
|
|
<TextBlock Margin="0,0,0,0" Style="{StaticResource BodyTextBlockStyle}"/>
|
|
|
|
</StackPanel>
|
|
|
|
</GridView.Header>
|
|
|
|
<GridView.ItemContainerStyle>
|
|
|
|
<Style TargetType="FrameworkElement">
|
|
|
|
<Setter Property="Margin" Value="52,0,0,2"/>
|
|
|
|
</Style>
|
|
|
|
</GridView.ItemContainerStyle>
|
|
|
|
</GridView>
|
|
|
|
|
|
|
|
<!-- Back button and page title -->
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="120"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button x:Name="backButton" Margin="39,59,39,0" Command="{Binding NavigationHelper.GoBackCommand, ElementName=pageRoot}"
|
|
|
|
Style="{StaticResource NavigationBackButtonNormalStyle}"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
AutomationProperties.Name="Back"
|
|
|
|
AutomationProperties.AutomationId="BackButton"
|
|
|
|
AutomationProperties.ItemType="Navigation Button"/>
|
|
|
|
<TextBlock x:Name="pageTitle" Text="{Binding Name}" Style="{StaticResource HeaderTextBlockStyle}" Grid.Column="1"
|
|
|
|
IsHitTestVisible="false" TextWrapping="NoWrap" VerticalAlignment="Bottom" Margin="0,0,30,40"/>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Page>
|