mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
New Save button in the AppBar EntryPage now uses the same AppBar as GroupPage (but not shared...) Some new Symbol mappings
41 lines
2.7 KiB
XML
41 lines
2.7 KiB
XML
<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"
|
|
xmlns:local="using:ModernKeePass.Controls"
|
|
xmlns:converters="using:ModernKeePass.Converters"
|
|
xmlns:viewModels="using:ModernKeePass.ViewModels"
|
|
xmlns:interactivity="using:Microsoft.Xaml.Interactivity" xmlns:Core="using:Microsoft.Xaml.Interactions.Core"
|
|
mc:Ignorable="d">
|
|
<Page.Resources>
|
|
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
|
<converters:ProgressBarLegalValuesConverter x:Key="ProgressBarLegalValuesConverter"/>
|
|
<converters:DoubleToForegroungBrushComplexityConverter x:Key="DoubleToForegroungBrushComplexityConverter"/>
|
|
</Page.Resources>
|
|
<Page.DataContext>
|
|
<viewModels:NewVm />
|
|
</Page.DataContext>
|
|
|
|
<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
<TextBlock Style="{StaticResource HeaderTextBlockStyle}" Margin="0,-20,0,20">New</TextBlock>
|
|
<HyperlinkButton Content="Create new..." Click="ButtonBase_OnClick" />
|
|
<TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="15,0,0,30">Create a new password database to the location of your chosing.</TextBlock>
|
|
<Border HorizontalAlignment="Left" BorderThickness="1" BorderBrush="AliceBlue" Width="550" 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" >
|
|
<interactivity:Interaction.Behaviors>
|
|
<Core:EventTriggerBehavior EventName="ValidationChecked">
|
|
<Core:NavigateToPageAction TargetPage="ModernKeePass.Pages.GroupDetailPage" />
|
|
</Core:EventTriggerBehavior>
|
|
</interactivity:Interaction.Behaviors>
|
|
</local:OpenDatabaseUserControl>
|
|
<TextBlock Margin="25,0,0,10">Password complexity</TextBlock>
|
|
<ProgressBar Margin="25,0,0,10" Value="{Binding PasswordComplexityIndicator, ConverterParameter=0\,128, Converter={StaticResource ProgressBarLegalValuesConverter}}" Maximum="128" Width="500" HorizontalAlignment="Left" Foreground="{Binding PasswordComplexityIndicator, ConverterParameter=128, Converter={StaticResource DoubleToForegroungBrushComplexityConverter}}" />
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</Page>
|