diff --git a/ModernKeePass/Controls/TextBoxWithButton.cs b/ModernKeePass/Controls/TextBoxWithButton.cs
index 99f0e5f..3db0bd1 100644
--- a/ModernKeePass/Controls/TextBoxWithButton.cs
+++ b/ModernKeePass/Controls/TextBoxWithButton.cs
@@ -43,19 +43,7 @@ namespace ModernKeePass.Controls
typeof(bool),
typeof(TextBoxWithButton),
new PropertyMetadata(true, (o, args) => { }));
-
- public FlyoutBase ButtonFlyout
- {
- get { return (FlyoutBase)GetValue(ButtonFlyoutProperty); }
- set { SetValue(ButtonFlyoutProperty, value); }
- }
- public static readonly DependencyProperty ButtonFlyoutProperty =
- DependencyProperty.Register(
- "ButtonFlyout",
- typeof(FlyoutBase),
- typeof(TextBoxWithButton),
- new PropertyMetadata(null, (o, args) => { }));
-
+
protected override void OnApplyTemplate()
{
base.OnApplyTemplate();
diff --git a/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml b/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml
index 973338a..3664575 100644
--- a/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml
+++ b/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml
@@ -246,9 +246,6 @@
Content="{TemplateBinding ButtonSymbol}"
IsEnabled="{TemplateBinding IsButtonEnabled}"
VerticalAlignment="Stretch">
-
-
-
diff --git a/ModernKeePass/Strings/en-US/Resources.resw b/ModernKeePass/Strings/en-US/Resources.resw
index 184bbec..8c4517a 100644
--- a/ModernKeePass/Strings/en-US/Resources.resw
+++ b/ModernKeePass/Strings/en-US/Resources.resw
@@ -447,4 +447,7 @@
Save
+
+ Sort
+
\ No newline at end of file
diff --git a/ModernKeePass/Strings/fr-FR/Resources.resw b/ModernKeePass/Strings/fr-FR/Resources.resw
index 60736f6..56b6fad 100644
--- a/ModernKeePass/Strings/fr-FR/Resources.resw
+++ b/ModernKeePass/Strings/fr-FR/Resources.resw
@@ -447,4 +447,7 @@
Sauvegarder
+
+ Trier
+
\ No newline at end of file
diff --git a/ModernKeePass/ViewModels/EntryVm.cs b/ModernKeePass/ViewModels/EntryVm.cs
index 43fbc49..457bf3f 100644
--- a/ModernKeePass/ViewModels/EntryVm.cs
+++ b/ModernKeePass/ViewModels/EntryVm.cs
@@ -51,14 +51,14 @@ namespace ModernKeePass.ViewModels
public string Name
{
get { return GetEntryValue(PwDefs.TitleField); }
- set { SetEntryValue(PwDefs.TitleField, value); }
+ set { SetEntryValue(PwDefs.TitleField, new ProtectedString(true, value)); }
}
public string UserName
{
get { return GetEntryValue(PwDefs.UserNameField); }
- set { SetEntryValue(PwDefs.UserNameField, value); }
+ set { SetEntryValue(PwDefs.UserNameField, new ProtectedString(true, value)); }
}
public string Password
@@ -66,7 +66,7 @@ namespace ModernKeePass.ViewModels
get { return GetEntryValue(PwDefs.PasswordField); }
set
{
- SetEntryValue(PwDefs.PasswordField, value);
+ SetEntryValue(PwDefs.PasswordField, new ProtectedString(true, value));
NotifyPropertyChanged("Password");
NotifyPropertyChanged("PasswordComplexityIndicator");
}
@@ -75,13 +75,13 @@ namespace ModernKeePass.ViewModels
public string Url
{
get { return GetEntryValue(PwDefs.UrlField); }
- set { SetEntryValue(PwDefs.UrlField, value); }
+ set { SetEntryValue(PwDefs.UrlField, new ProtectedString(true, value)); }
}
public string Notes
{
get { return GetEntryValue(PwDefs.NotesField); }
- set { SetEntryValue(PwDefs.NotesField, value); }
+ set { SetEntryValue(PwDefs.NotesField, new ProtectedString(true, value)); }
}
public int IconId
@@ -239,7 +239,7 @@ namespace ModernKeePass.ViewModels
ProtectedString password;
PwGenerator.Generate(out password, pwProfile, null, new CustomPwGeneratorPool());
- _pwEntry?.Strings.Set(PwDefs.PasswordField, password);
+ SetEntryValue(PwDefs.PasswordField, password);
NotifyPropertyChanged("Password");
NotifyPropertyChanged("IsRevealPasswordEnabled");
NotifyPropertyChanged("PasswordComplexityIndicator");
@@ -291,14 +291,14 @@ namespace ModernKeePass.ViewModels
return _pwEntry?.Strings.GetSafe(key).ReadString();
}
- private void SetEntryValue(string key, string newValue)
+ private void SetEntryValue(string key, ProtectedString newValue)
{
if (!_isDirty)
{
_pwEntry.Touch(true);
_pwEntry?.CreateBackup(null);
}
- _pwEntry?.Strings.Set(key, new ProtectedString(true, newValue));
+ _pwEntry?.Strings.Set(key, newValue);
_isDirty = true;
}
}
diff --git a/ModernKeePass/Views/EntryDetailPage.xaml b/ModernKeePass/Views/EntryDetailPage.xaml
index ca1991a..a211b44 100644
--- a/ModernKeePass/Views/EntryDetailPage.xaml
+++ b/ModernKeePass/Views/EntryDetailPage.xaml
@@ -454,6 +454,7 @@
+
@@ -463,6 +464,7 @@
+
@@ -518,6 +520,7 @@
+