From 786f824303e765976669750668d1d2a5e5dd78ca Mon Sep 17 00:00:00 2001 From: zh3305 Date: Tue, 30 May 2023 16:40:02 +0800 Subject: [PATCH 1/3] update : Adjust the minimum width when CheckBox Content is empty --- src/Wpf.Ui/Styles/Controls/CheckBox.xaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Wpf.Ui/Styles/Controls/CheckBox.xaml b/src/Wpf.Ui/Styles/Controls/CheckBox.xaml index c9986ab26..9b9979137 100644 --- a/src/Wpf.Ui/Styles/Controls/CheckBox.xaml +++ b/src/Wpf.Ui/Styles/Controls/CheckBox.xaml @@ -109,9 +109,11 @@ + + From b9dd073332de1a525bf3889fc203fc212b6b184a Mon Sep 17 00:00:00 2001 From: zh3305 Date: Wed, 7 Jun 2023 14:52:24 +0800 Subject: [PATCH 2/3] update : Hyperlink can Binding Command events --- src/Wpf.Ui/Controls/Hyperlink.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Wpf.Ui/Controls/Hyperlink.cs b/src/Wpf.Ui/Controls/Hyperlink.cs index c014c017c..aba29cb46 100644 --- a/src/Wpf.Ui/Controls/Hyperlink.cs +++ b/src/Wpf.Ui/Controls/Hyperlink.cs @@ -36,7 +36,10 @@ protected override void OnClick() RaiseEvent(newEvent); if (newEvent.Handled || string.IsNullOrEmpty(NavigateUri)) + { + base.OnClick(); return; + } try { From b62a4c829008d131bebe458ed0b5aea934218556 Mon Sep 17 00:00:00 2001 From: zh3305 Date: Fri, 9 Jun 2023 12:09:13 +0800 Subject: [PATCH 3/3] fix : Fix bug for multiple propagating events --- src/Wpf.Ui/Controls/Hyperlink.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Wpf.Ui/Controls/Hyperlink.cs b/src/Wpf.Ui/Controls/Hyperlink.cs index aba29cb46..b89af7edd 100644 --- a/src/Wpf.Ui/Controls/Hyperlink.cs +++ b/src/Wpf.Ui/Controls/Hyperlink.cs @@ -32,12 +32,9 @@ public string NavigateUri protected override void OnClick() { - RoutedEventArgs newEvent = new RoutedEventArgs(ButtonBase.ClickEvent, this); - RaiseEvent(newEvent); - - if (newEvent.Handled || string.IsNullOrEmpty(NavigateUri)) + base.OnClick(); + if (string.IsNullOrEmpty(NavigateUri)) { - base.OnClick(); return; }