From 5ce026231818321c97d0f3d5d8f068977f44e2ae Mon Sep 17 00:00:00 2001 From: Geoffroy BONNEVILLE Date: Tue, 5 May 2020 15:27:34 +0200 Subject: [PATCH] TextBoxWithButton control correctly updates field value Create Group now allows inline input of the group name --- .../TextBoxWithButtonStyle.xaml | 5 +- ModernKeePass/Strings/en-US/Resources.resw | 3 + ModernKeePass/Strings/fr-FR/Resources.resw | 3 + ModernKeePass/ViewModels/GroupDetailVm.cs | 8 +-- .../HamburgerMenuUserControl.xaml | 60 +++++++++++++++---- .../HamburgerMenuUserControl.xaml.cs | 26 +++++--- .../UserControls/TopMenuUserControl.xaml | 1 - WinAppCommon/Controls/TextBoxWithButton.cs | 12 ++++ 8 files changed, 91 insertions(+), 27 deletions(-) diff --git a/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml b/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml index b8880a8..6ad9db9 100644 --- a/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml +++ b/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml @@ -291,7 +291,7 @@ TextWrapping="NoWrap" VerticalAlignment="Stretch" Margin="0" - Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, Path=Text}" /> + Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, Path=Text, UpdateSourceTrigger=PropertyChanged}" /> + + + + + + + + + + + + + + + + +