mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Groups sorting now works with new Lib
New database settings improved
This commit is contained in:
@@ -328,7 +328,7 @@
|
|||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="ModernKeePassLib, Version=2.37.0.2000, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="ModernKeePassLib, Version=2.37.0.2000, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\ModernKeePassLib.2.37.7000\lib\netstandard1.2\ModernKeePassLib.dll</HintPath>
|
<HintPath>..\packages\ModernKeePassLib.2.37.8000\lib\netstandard1.2\ModernKeePassLib.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Splat, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="Splat, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
@@ -349,7 +349,6 @@
|
|||||||
<Name>BehaviorsXamlSDKManaged</Name>
|
<Name>BehaviorsXamlSDKManaged</Name>
|
||||||
</SDKReference>
|
</SDKReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="appMetadata\en-us\baselisting\description.txt" />
|
<Content Include="appMetadata\en-us\baselisting\description.txt" />
|
||||||
<Content Include="appMetadata\en-us\baselisting\images\Screenshot\description.Entry.txt" />
|
<Content Include="appMetadata\en-us\baselisting\images\Screenshot\description.Entry.txt" />
|
||||||
|
@@ -119,7 +119,7 @@
|
|||||||
DataContext="{Binding DataContext, ElementName=PageRoot}"
|
DataContext="{Binding DataContext, ElementName=PageRoot}"
|
||||||
RequestedTheme="Dark"
|
RequestedTheme="Dark"
|
||||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
||||||
Foreground="{ThemeResource DefaultTextForegroundThemeBrush}" AllowDrop="True" Drop="LeftListView_Drop">
|
Foreground="{ThemeResource DefaultTextForegroundThemeBrush}">
|
||||||
<ListView.Resources>
|
<ListView.Resources>
|
||||||
<DataTemplate x:Name="Collapsed">
|
<DataTemplate x:Name="Collapsed">
|
||||||
<SymbolIcon Symbol="{Binding IconSymbol}" Margin="8,0,0,0">
|
<SymbolIcon Symbol="{Binding IconSymbol}" Margin="8,0,0,0">
|
||||||
@@ -144,6 +144,7 @@
|
|||||||
<!--<Setter Property="HorizontalContentAlignment" Value="Center" />-->
|
<!--<Setter Property="HorizontalContentAlignment" Value="Center" />-->
|
||||||
<Setter Property="Padding" Value="0"/>
|
<Setter Property="Padding" Value="0"/>
|
||||||
<Setter Property="Margin" Value="0"/>
|
<Setter Property="Margin" Value="0"/>
|
||||||
|
<Setter Property="AllowDrop" Value="True"/>
|
||||||
</Style>
|
</Style>
|
||||||
</ListView.ItemContainerStyle>
|
</ListView.ItemContainerStyle>
|
||||||
<ListView.HeaderTemplate>
|
<ListView.HeaderTemplate>
|
||||||
@@ -184,8 +185,7 @@
|
|||||||
AllowDrop="True"
|
AllowDrop="True"
|
||||||
CanReorderItems="True"
|
CanReorderItems="True"
|
||||||
CanDragItems="True"
|
CanDragItems="True"
|
||||||
DragItemsStarting="GridView_DragItemsStarting"
|
DragItemsStarting="GridView_DragItemsStarting">
|
||||||
Drop="GridView_Drop">
|
|
||||||
<interactivity:Interaction.Behaviors>
|
<interactivity:Interaction.Behaviors>
|
||||||
<core:DataTriggerBehavior Binding="{Binding IsEditMode}" Value="False">
|
<core:DataTriggerBehavior Binding="{Binding IsEditMode}" Value="False">
|
||||||
<actions:SetupFocusAction TargetObject="{Binding ElementName=GridView}" />
|
<actions:SetupFocusAction TargetObject="{Binding ElementName=GridView}" />
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using Windows.ApplicationModel.DataTransfer;
|
||||||
using Windows.Storage.Streams;
|
using Windows.Storage.Streams;
|
||||||
using Windows.UI.Xaml;
|
using Windows.UI.Xaml;
|
||||||
using Windows.UI.Xaml.Controls;
|
using Windows.UI.Xaml.Controls;
|
||||||
@@ -163,15 +164,7 @@ namespace ModernKeePass.Pages
|
|||||||
private void GridView_DragItemsStarting(object sender, DragItemsStartingEventArgs e)
|
private void GridView_DragItemsStarting(object sender, DragItemsStartingEventArgs e)
|
||||||
{
|
{
|
||||||
e.Cancel = !Model.IsEditMode;
|
e.Cancel = !Model.IsEditMode;
|
||||||
}
|
e.Data.RequestedOperation = DataPackageOperation.Move;
|
||||||
|
|
||||||
private void GridView_Drop(object sender, DragEventArgs e)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LeftListView_Drop(object sender, DragEventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,7 +6,6 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:viewModels="using:ModernKeePass.ViewModels"
|
xmlns:viewModels="using:ModernKeePass.ViewModels"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
<Page.Resources>
|
<Page.Resources>
|
||||||
<CollectionViewSource x:Name="KeyDerivations" Source="{Binding FileFormats}" />
|
<CollectionViewSource x:Name="KeyDerivations" Source="{Binding FileFormats}" />
|
||||||
</Page.Resources>
|
</Page.Resources>
|
||||||
@@ -17,6 +16,25 @@
|
|||||||
<TextBlock x:Uid="SettingsNewDatabaseDesc" Style="{StaticResource TextBlockSettingsHeaderStyle}" Margin="5,0,0,10"/>
|
<TextBlock x:Uid="SettingsNewDatabaseDesc" Style="{StaticResource TextBlockSettingsHeaderStyle}" Margin="5,0,0,10"/>
|
||||||
<ToggleSwitch x:Uid="SettingsNewDatabaseSample" IsOn="{Binding IsCreateSample, Mode=TwoWay}" />
|
<ToggleSwitch x:Uid="SettingsNewDatabaseSample" IsOn="{Binding IsCreateSample, Mode=TwoWay}" />
|
||||||
<TextBlock x:Uid="SettingsNewDatabaseKdf" Style="{StaticResource TextBlockSettingsHeaderStyle}" Margin="5,20,0,10" />
|
<TextBlock x:Uid="SettingsNewDatabaseKdf" Style="{StaticResource TextBlockSettingsHeaderStyle}" Margin="5,20,0,10" />
|
||||||
<ComboBox ItemsSource="{Binding Source={StaticResource KeyDerivations}}" SelectedItem="{Binding FileFormatVersion, Mode=TwoWay}" />
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<ComboBox Grid.Column="1" ItemsSource="{Binding Source={StaticResource KeyDerivations}}" SelectedItem="{Binding FileFormatVersion, Mode=TwoWay}" />
|
||||||
|
<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>
|
||||||
|
<TextBlock x:Uid="SettingsNewDatabaseKdfMoreInfo" />
|
||||||
|
</Flyout>
|
||||||
|
</Button.Flyout>
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Page>
|
</Page>
|
||||||
|
@@ -262,7 +262,10 @@
|
|||||||
<value>Here, you can change some default options when creating a database.</value>
|
<value>Here, you can change some default options when creating a database.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="SettingsNewDatabaseKdf.Text" xml:space="preserve">
|
<data name="SettingsNewDatabaseKdf.Text" xml:space="preserve">
|
||||||
<value>File format</value>
|
<value>KDBX database file version</value>
|
||||||
|
</data>
|
||||||
|
<data name="SettingsNewDatabaseKdfMoreInfo.Text" xml:space="preserve">
|
||||||
|
<value>Higher is better, but there may be compatibility issues with older applications</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="SettingsNewDatabaseSample.Header" xml:space="preserve">
|
<data name="SettingsNewDatabaseSample.Header" xml:space="preserve">
|
||||||
<value>Create sample data</value>
|
<value>Create sample data</value>
|
||||||
|
@@ -201,7 +201,7 @@ namespace ModernKeePass.ViewModels
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
_pwGroup.SortSubGroups(false);
|
_pwGroup.SortSubGroups(false);
|
||||||
Groups = new ObservableCollection<GroupVm>(Groups.Skip(1).OrderBy(g => g.Name));
|
Groups = new ObservableCollection<GroupVm>(Groups.OrderBy(g => g.Name).ThenBy(g => g._pwGroup == null));
|
||||||
OnPropertyChanged("Groups");
|
OnPropertyChanged("Groups");
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
<package id="Microsoft.NETCore.Platforms" version="2.0.1" targetFramework="win81" />
|
<package id="Microsoft.NETCore.Platforms" version="2.0.1" targetFramework="win81" />
|
||||||
<package id="Microsoft.NETCore.Portable.Compatibility" version="1.0.2" targetFramework="win81" />
|
<package id="Microsoft.NETCore.Portable.Compatibility" version="1.0.2" targetFramework="win81" />
|
||||||
<package id="Microsoft.Toolkit.Uwp.Notifications" version="2.0.0" targetFramework="win81" />
|
<package id="Microsoft.Toolkit.Uwp.Notifications" version="2.0.0" targetFramework="win81" />
|
||||||
<package id="ModernKeePassLib" version="2.37.7000" targetFramework="win81" />
|
<package id="ModernKeePassLib" version="2.37.8000" targetFramework="win81" />
|
||||||
<package id="NETStandard.Library" version="2.0.1" targetFramework="win81" />
|
<package id="NETStandard.Library" version="2.0.1" targetFramework="win81" />
|
||||||
<package id="Portable.BouncyCastle" version="1.8.1.3" targetFramework="win81" />
|
<package id="Portable.BouncyCastle" version="1.8.1.3" targetFramework="win81" />
|
||||||
<package id="Splat" version="2.0.0" targetFramework="win81" />
|
<package id="Splat" version="2.0.0" targetFramework="win81" />
|
||||||
|
Reference in New Issue
Block a user