2017-11-28 16:57:16 -05:00
|
|
|
<Page
|
2017-12-08 19:38:33 +01:00
|
|
|
x:Class="ModernKeePass.Views.SettingsNewDatabasePage"
|
2017-11-28 16:57:16 -05: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:viewModels="using:ModernKeePass.ViewModels"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<Page.Resources>
|
2017-11-29 19:13:38 +01:00
|
|
|
<CollectionViewSource x:Name="KeyDerivations" Source="{Binding FileFormats}" />
|
2017-11-28 16:57:16 -05:00
|
|
|
</Page.Resources>
|
|
|
|
<Page.DataContext>
|
|
|
|
<viewModels:SettingsNewVm />
|
|
|
|
</Page.DataContext>
|
|
|
|
<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
2017-11-29 19:13:38 +01:00
|
|
|
<TextBlock x:Uid="SettingsNewDatabaseDesc" Style="{StaticResource TextBlockSettingsHeaderStyle}" Margin="5,0,0,10"/>
|
2018-06-08 11:12:54 +02:00
|
|
|
<ToggleSwitch x:Uid="SettingsNewDatabaseSample" IsOn="{Binding IsCreateSample, Mode=TwoWay}" Style="{StaticResource MainColorToggleSwitch}" />
|
2017-11-29 19:13:38 +01:00
|
|
|
<TextBlock x:Uid="SettingsNewDatabaseKdf" Style="{StaticResource TextBlockSettingsHeaderStyle}" Margin="5,20,0,10" />
|
2017-11-30 18:56:56 +01:00
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2018-06-08 14:27:35 +02:00
|
|
|
<ComboBox Grid.Column="1" ItemsSource="{Binding Source={StaticResource KeyDerivations}}" SelectedItem="{Binding FileFormatVersion, Mode=TwoWay}" ItemContainerStyle="{StaticResource MainColorComboBoxItem}" />
|
2017-11-30 18:56:56 +01:00
|
|
|
<Button Grid.Column="2" 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>
|
2017-12-06 18:42:02 +01:00
|
|
|
<TextBlock x:Uid="SettingsNewDatabaseKdfMoreInfo" TextWrapping="WrapWholeWords" MaxWidth="400" />
|
2017-11-30 18:56:56 +01:00
|
|
|
</Flyout>
|
|
|
|
</Button.Flyout>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
2017-11-28 16:57:16 -05:00
|
|
|
</StackPanel>
|
|
|
|
</Page>
|