mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Key Derivation setting added More unit tests created Some cleanup in lib WIP Argon2 save
30 lines
1.9 KiB
XML
30 lines
1.9 KiB
XML
<Page
|
|
x:Class="ModernKeePass.Pages.SettingsDatabasePage"
|
|
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>
|
|
<CollectionViewSource x:Name="RecycleBinGroups" Source="{Binding Groups}" />
|
|
<CollectionViewSource x:Name="Ciphers" Source="{Binding Ciphers}" />
|
|
<CollectionViewSource x:Name="Compressions" Source="{Binding Compressions}" />
|
|
<CollectionViewSource x:Name="KeyDerivations" Source="{Binding KeyDerivations}" />
|
|
</Page.Resources>
|
|
<Page.DataContext>
|
|
<viewModels:SettingsDatabaseVm />
|
|
</Page.DataContext>
|
|
|
|
<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
<ToggleSwitch Header="Recycle bin" OffContent="Disabled" OnContent="Enabled" IsOn="{Binding HasRecycleBin, Mode=TwoWay}" />
|
|
<ComboBox ItemsSource="{Binding Source={StaticResource RecycleBinGroups}}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" IsEnabled="{Binding HasRecycleBin}" />
|
|
<TextBlock Text="Encryption Algorithm" FontSize="14" Margin="5,20,0,10" />
|
|
<ComboBox ItemsSource="{Binding Source={StaticResource Ciphers}}" SelectedIndex="{Binding CipherIndex, Mode=TwoWay}" />
|
|
<TextBlock Text="Compression Algorithm" FontSize="14" Margin="5,20,0,10" />
|
|
<ComboBox ItemsSource="{Binding Source={StaticResource Compressions}}" SelectedItem="{Binding CompressionName, Mode=TwoWay}" />
|
|
<TextBlock Text="Key Derivation Algorithm" FontSize="14" Margin="5,20,0,10" />
|
|
<ComboBox ItemsSource="{Binding Source={StaticResource KeyDerivations}}" SelectedItem="{Binding KeyDerivationName, Mode=TwoWay}" />
|
|
</StackPanel>
|
|
</Page>
|