From 19427e3386599d21aa410f1b924252c97ca92b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=AB=E5=9F=8Evia?= <969954321@qq.com> Date: Sat, 27 Nov 2021 20:49:23 +0800 Subject: [PATCH] improvement (#39) New Properties: PasswordBoxHelper.PlainButtonStyle PasswordBoxHelper.PlainButtonVisibility Fixup: NoticeBox might throw an exception when calling from another thread. TextBlockHelper will not update highlights when properties are changed. --- DotNet/WPF/Src/Samples/App.xaml | 13 --- .../Samples/Views/Examples/SignInView.xaml | 2 +- .../Styles/PasswordBoxStyle.xaml | 34 +++++++- .../Templates/PasswordBoxTemplate.xaml | 80 +++++++++++++++++++ .../Panuon.UI.Silver/Helpers/NoticeBox.cs | 68 ++++++++-------- .../Helpers/PasswordBoxHelper.cs | 30 +++++++ .../Helpers/TextBlockHelper.cs | 6 +- 7 files changed, 180 insertions(+), 53 deletions(-) diff --git a/DotNet/WPF/Src/Samples/App.xaml b/DotNet/WPF/Src/Samples/App.xaml index 01328851..6a5bcc02 100644 --- a/DotNet/WPF/Src/Samples/App.xaml +++ b/DotNet/WPF/Src/Samples/App.xaml @@ -29,19 +29,6 @@ - - - - - diff --git a/DotNet/WPF/Src/Samples/Views/Examples/SignInView.xaml b/DotNet/WPF/Src/Samples/Views/Examples/SignInView.xaml index 256dbe17..0ca9891f 100644 --- a/DotNet/WPF/Src/Samples/Views/Examples/SignInView.xaml +++ b/DotNet/WPF/Src/Samples/Views/Examples/SignInView.xaml @@ -77,7 +77,7 @@ + Value="Shake" /> diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/PasswordBoxStyle.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/PasswordBoxStyle.xaml index 623da4eb..0ceaf7f9 100644 --- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/PasswordBoxStyle.xaml +++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/PasswordBoxStyle.xaml @@ -32,7 +32,37 @@ - + + +