2017-09-27 18:01:21 +02: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"
|
|
|
|
xmlns:viewModels="using:ModernKeePass.ViewModels"
|
2017-10-01 08:48:29 -04:00
|
|
|
xmlns:local="using:ModernKeePass.Controls"
|
2017-10-10 15:00:31 +02:00
|
|
|
xmlns:converters="using:ModernKeePass.Converters"
|
2017-10-25 18:29:50 +02:00
|
|
|
xmlns:interactivity="using:Microsoft.Xaml.Interactivity" xmlns:Core="using:Microsoft.Xaml.Interactions.Core"
|
2017-09-27 18:01:21 +02:00
|
|
|
x:Class="ModernKeePass.Pages.OpenDatabasePage"
|
|
|
|
mc:Ignorable="d">
|
2017-10-10 15:00:31 +02:00
|
|
|
<Page.Resources>
|
|
|
|
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
|
|
|
</Page.Resources>
|
2017-09-27 18:01:21 +02:00
|
|
|
<Page.DataContext>
|
2017-10-10 15:00:31 +02:00
|
|
|
<viewModels:OpenVm/>
|
2017-09-27 18:01:21 +02:00
|
|
|
</Page.DataContext>
|
|
|
|
|
2017-10-01 08:48:29 -04:00
|
|
|
<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
2017-11-28 18:53:10 +01:00
|
|
|
<HyperlinkButton x:Uid="OpenBrowseButton" Click="ButtonBase_OnClick" />
|
|
|
|
<TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="15,0,0,30" x:Uid="OpenBrowseDesc" />
|
|
|
|
<HyperlinkButton x:Uid="OpenUrlButton" IsEnabled="False" />
|
|
|
|
<TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="15,0,0,30" x:Uid="OpenUrlDesc" />
|
2017-10-24 18:43:46 +02:00
|
|
|
<Border HorizontalAlignment="Left" BorderThickness="1" BorderBrush="AliceBlue" Width="550" Visibility="{Binding ShowPasswordBox, Converter={StaticResource BooleanToVisibilityConverter}}">
|
2017-10-27 16:28:13 +02:00
|
|
|
<StackPanel Margin="25,0,25,0">
|
|
|
|
<TextBlock Text="{Binding Name}" />
|
2017-11-24 18:21:06 +01:00
|
|
|
<local:CompositeKeyUserControl ButtonLabel="Open">
|
2017-10-25 18:29:50 +02:00
|
|
|
<interactivity:Interaction.Behaviors>
|
|
|
|
<Core:EventTriggerBehavior EventName="ValidationChecked">
|
|
|
|
<Core:NavigateToPageAction TargetPage="ModernKeePass.Pages.GroupDetailPage" />
|
|
|
|
</Core:EventTriggerBehavior>
|
|
|
|
</interactivity:Interaction.Behaviors>
|
2017-11-07 18:50:36 +01:00
|
|
|
</local:CompositeKeyUserControl>
|
2017-10-16 16:16:58 +02:00
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
2017-10-01 08:48:29 -04:00
|
|
|
</StackPanel>
|
2017-10-10 15:00:31 +02:00
|
|
|
</Page>
|