2017-10-11 18:43:27 +02:00
|
|
|
<Page
|
2017-12-08 19:38:33 +01:00
|
|
|
x:Class="ModernKeePass.Views.NewDatabasePage"
|
2017-10-11 18:43:27 +02:00
|
|
|
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:converters="using:ModernKeePass.Converters"
|
|
|
|
xmlns:viewModels="using:ModernKeePass.ViewModels"
|
2017-12-08 19:38:33 +01:00
|
|
|
xmlns:userControls="using:ModernKeePass.Views.UserControls"
|
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"/>
|
2020-04-22 16:21:47 +02:00
|
|
|
<viewModels:NewVm x:Key="ViewModel"/>
|
2017-10-11 18:43:27 +02:00
|
|
|
</Page.Resources>
|
2018-09-07 18:16:40 +02:00
|
|
|
|
2020-04-22 16:21:47 +02:00
|
|
|
<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" DataContext="{StaticResource ViewModel}">
|
2018-09-10 17:29:52 +02:00
|
|
|
<HyperlinkButton x:Uid="NewCreateButton" Click="CreateDatabaseButton_OnClick" Foreground="{StaticResource MainColor}" Style="{StaticResource MainColorHyperlinkButton}" />
|
2017-11-28 18:53:10 +01:00
|
|
|
<TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="15,0,0,30" x:Uid="NewCreateDesc" />
|
2018-06-20 11:52:17 +02:00
|
|
|
<Border HorizontalAlignment="Left" BorderThickness="1" BorderBrush="AliceBlue" Width="550" Visibility="{Binding IsFileSelected, Converter={StaticResource BooleanToVisibilityConverter}}">
|
2017-10-27 16:28:13 +02:00
|
|
|
<StackPanel Margin="25,0,25,0">
|
|
|
|
<TextBlock Text="{Binding Name}" />
|
2020-04-22 16:21:47 +02:00
|
|
|
<userControls:SetCredentialsUserControl x:Uid="CompositeKeyNewButton" />
|
2018-09-07 18:16:40 +02:00
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
2018-09-10 17:29:52 +02:00
|
|
|
<CheckBox x:Name="CheckBox" x:Uid="NewImportCheckbox" Margin="15,10,0,0" IsChecked="{Binding IsImportChecked, Mode=TwoWay}" Visibility="{Binding IsFileSelected, Converter={StaticResource BooleanToVisibilityConverter}}" />
|
2018-09-07 18:16:40 +02:00
|
|
|
<Border HorizontalAlignment="Left" BorderThickness="1" BorderBrush="AliceBlue" Width="550" Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=CheckBox}">
|
|
|
|
<StackPanel Margin="25,0,25,0">
|
2018-09-10 17:29:52 +02:00
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock x:Uid="NewImportFormat" Margin="0,15,0,10" Style="{StaticResource BodyTextBlockStyle}" />
|
|
|
|
<ComboBox Style="{StaticResource MainColorComboBox}" Margin="15,15,0,0" SelectionChanged="ImportFormatComboBox_OnSelectionChanged">
|
2018-09-07 18:16:40 +02:00
|
|
|
<ComboBoxItem>CSV</ComboBoxItem>
|
|
|
|
</ComboBox>
|
2018-09-10 17:29:52 +02:00
|
|
|
<Button Margin="5,10,0,0" Style="{StaticResource TextBlockButtonStyle}">
|
|
|
|
<SymbolIcon Symbol="Help" RenderTransformOrigin="0.5,0.5" >
|
|
|
|
<SymbolIcon.RenderTransform>
|
|
|
|
<CompositeTransform ScaleX="0.7" ScaleY="0.7"/>
|
|
|
|
</SymbolIcon.RenderTransform>
|
|
|
|
</SymbolIcon>
|
|
|
|
<Button.Flyout>
|
|
|
|
<Flyout>
|
|
|
|
<TextBlock Text="{Binding ImportFormatHelp}" TextWrapping="WrapWholeWords" MaxWidth="400" />
|
|
|
|
</Flyout>
|
|
|
|
</Button.Flyout>
|
|
|
|
</Button>
|
2018-09-07 18:16:40 +02:00
|
|
|
</StackPanel>
|
2018-09-10 17:29:52 +02:00
|
|
|
<HyperlinkButton x:Name="ImportFileLink" x:Uid="NewImportFile" Margin="-15,0,0,0" Style="{StaticResource MainColorHyperlinkButton}" Click="ImportFileButton_OnClick" />
|
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
|
|
|
|
2017-12-08 19:38:33 +01:00
|
|
|
|
|
|
|
|