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"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<Page.Resources>
|
2017-10-16 16:16:58 +02:00
|
|
|
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
|
|
|
<converters:ProgressBarLegalValuesConverter x:Key="ProgressBarLegalValuesConverter"/>
|
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}">
|
2017-10-16 10:57:39 +02:00
|
|
|
<TextBlock Style="{StaticResource HeaderTextBlockStyle}" Margin="0,-20,0,20">New</TextBlock>
|
2017-10-11 18:43:27 +02:00
|
|
|
<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-16 16:16:58 +02:00
|
|
|
<Border HorizontalAlignment="Left" BorderThickness="1" BorderBrush="AliceBlue" Width="350" Visibility="{Binding ShowPasswordBox, Converter={StaticResource BooleanToVisibilityConverter}}">
|
|
|
|
<StackPanel>
|
|
|
|
<TextBlock Margin="25,10,0,10" Text="{Binding Name}" />
|
|
|
|
<local:OpenDatabaseUserControl Password="{Binding Password, Mode=TwoWay}" CreateNew="True" ValidationChecked="PasswordUserControl_PasswordChecked" />
|
|
|
|
<TextBlock Margin="25,0,0,10">Password complexity</TextBlock>
|
2017-10-16 18:31:45 +02:00
|
|
|
<ProgressBar Margin="25,0,0,10" Value="{Binding PasswordComplexityIndicator, ConverterParameter=0\,128, Converter={StaticResource ProgressBarLegalValuesConverter}, Mode=OneWay}" Maximum="128" Width="300" HorizontalAlignment="Left" />
|
2017-10-16 16:16:58 +02:00
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
2017-10-11 18:43:27 +02:00
|
|
|
</StackPanel>
|
|
|
|
</Page>
|