2017-10-11 18:43:27 +02:00
|
|
|
<Page
|
|
|
|
x:Class="ModernKeePass.Pages.NewDatabasePage"
|
|
|
|
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-10-12 17:45:37 +02:00
|
|
|
xmlns:local="using:ModernKeePass.Controls"
|
2017-10-11 18:43:27 +02:00
|
|
|
xmlns:converters="using:ModernKeePass.Converters"
|
|
|
|
xmlns:viewModels="using:ModernKeePass.ViewModels"
|
2017-11-04 12:11:30 -04:00
|
|
|
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
|
|
|
|
xmlns:core="using:Microsoft.Xaml.Interactions.Core"
|
2017-10-11 18:43:27 +02:00
|
|
|
mc:Ignorable="d">
|
|
|
|
<Page.Resources>
|
2017-10-16 16:16:58 +02:00
|
|
|
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
2017-10-11 18:43:27 +02:00
|
|
|
</Page.Resources>
|
|
|
|
<Page.DataContext>
|
2017-10-16 16:16:58 +02:00
|
|
|
<viewModels:NewVm />
|
2017-10-11 18:43:27 +02:00
|
|
|
</Page.DataContext>
|
2017-10-16 16:16:58 +02:00
|
|
|
|
2017-10-11 18:43:27 +02:00
|
|
|
<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
|
|
<HyperlinkButton Content="Create new..." Click="ButtonBase_OnClick" />
|
2017-10-13 11:48:58 +02:00
|
|
|
<TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="15,0,0,30">Create a new password database to the location of your chosing.</TextBlock>
|
2017-10-25 18:29:50 +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-07 18:50:36 +01:00
|
|
|
<local:CompositeKeyUserControl CreateNew="True" >
|
2017-10-25 18:29:50 +02:00
|
|
|
<interactivity:Interaction.Behaviors>
|
2017-11-04 12:11:30 -04:00
|
|
|
<core:EventTriggerBehavior EventName="ValidationChecked">
|
|
|
|
<core:NavigateToPageAction TargetPage="ModernKeePass.Pages.GroupDetailPage" />
|
|
|
|
</core:EventTriggerBehavior>
|
2017-10-25 18:29:50 +02:00
|
|
|
</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-11 18:43:27 +02:00
|
|
|
</StackPanel>
|
|
|
|
</Page>
|
2017-11-04 12:11:30 -04:00
|
|
|
|