From ce01b3b29c17b3f225daab3ccc83ddc70b3ed793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=AB=E5=9F=8Evia?= Date: Wed, 5 Jun 2024 18:44:11 +0800 Subject: [PATCH] 1.2.1.7 --- .../Styles/ColorPickerStyle.xaml | 2 +- .../Styles/ComboBoxStyle.xaml | 4 +- .../Styles/DateTimePickerStyle.xaml | 2 +- .../Styles/ExpanderStyle.xaml | 2 +- .../Styles/MultiComboBoxStyle.xaml | 2 +- .../Templates/FormGroupTemplate.xaml | 46 ++++++++--------- .../Panuon.WPF.UI/Controls/FormGroup.cs | 50 +++++++------------ .../Helpers/ListBoxItemHelper.cs | 10 +++- .../Panuon.WPF.UI/Properties/AssemblyInfo.cs | 4 +- 9 files changed, 58 insertions(+), 64 deletions(-) diff --git a/SourceCode/SharedResources/Panuon.WPF.UI.Internal/Styles/ColorPickerStyle.xaml b/SourceCode/SharedResources/Panuon.WPF.UI.Internal/Styles/ColorPickerStyle.xaml index 342a8a41..955f4dad 100644 --- a/SourceCode/SharedResources/Panuon.WPF.UI.Internal/Styles/ColorPickerStyle.xaml +++ b/SourceCode/SharedResources/Panuon.WPF.UI.Internal/Styles/ColorPickerStyle.xaml @@ -50,7 +50,7 @@ + Value="{Binding Path=(local:IconHelper.ToggleArrowFontSize), RelativeSource={RelativeSource AncestorType=local:ColorPicker}, Mode=OneWay}" /> + Value="{Binding Path=(local:IconHelper.ToggleArrowFontSize), RelativeSource={RelativeSource AncestorType=local:ColorPicker}, Mode=OneWay}" /> + Value="{Binding Path=(i:VisualStateHelper.Foreground), RelativeSource={RelativeSource AncestorType=local:ColorPicker}, Mode=OneWay}" /> diff --git a/SourceCode/SharedResources/Panuon.WPF.UI.Internal/Styles/DateTimePickerStyle.xaml b/SourceCode/SharedResources/Panuon.WPF.UI.Internal/Styles/DateTimePickerStyle.xaml index 79f831cf..6f95223a 100644 --- a/SourceCode/SharedResources/Panuon.WPF.UI.Internal/Styles/DateTimePickerStyle.xaml +++ b/SourceCode/SharedResources/Panuon.WPF.UI.Internal/Styles/DateTimePickerStyle.xaml @@ -42,7 +42,7 @@ + Value="{Binding Path=(local:IconHelper.ToggleArrowFontSize), RelativeSource={RelativeSource AncestorType=local:DateTimePicker}, Mode=OneWay}" /> + Value="{Binding Path=(local:IconHelper.ToggleArrowFontSize), RelativeSource={RelativeSource AncestorType=Expander}, Mode=OneWay}" /> + Value="{Binding Path=(local:IconHelper.ToggleArrowFontSize), RelativeSource={RelativeSource AncestorType=local:MultiComboBox}, Mode=OneWay}" /> - + - + @@ -28,10 +30,7 @@ ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" Foreground="{TemplateBinding HeaderForeground}" FontSize="{TemplateBinding HeaderFontSize}" - FontWeight="{TemplateBinding HeaderFontWeight}" - Margin="{TemplateBinding HeaderPadding}" - VerticalAlignment="{TemplateBinding VerticalHeaderAlignment}" - HorizontalAlignment="{TemplateBinding HorizontalHeaderAlignment}" /> + FontWeight="{TemplateBinding HeaderFontWeight}"/> @@ -77,27 +76,28 @@ MaxHeight="{Binding MaxMessageHeight, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" /> - - - - - + - - + + + + + + + + (listBoxItem); + if(listBoxItem == null) + { + return; + } + var listBox = ItemsControl.ItemsControlFromItemContainer(listBoxItem) as ListBox; + if (listBox == null) + { + return; + } var removedArgs = new RoutedEventArgs(ListBoxHelper.ItemClickEvent, listBoxItem); listBox.RaiseEvent(removedArgs); if (removedArgs.Handled) diff --git a/SourceCode/SharedResources/Panuon.WPF.UI/Properties/AssemblyInfo.cs b/SourceCode/SharedResources/Panuon.WPF.UI/Properties/AssemblyInfo.cs index fc8a94a6..c5aad03c 100644 --- a/SourceCode/SharedResources/Panuon.WPF.UI/Properties/AssemblyInfo.cs +++ b/SourceCode/SharedResources/Panuon.WPF.UI/Properties/AssemblyInfo.cs @@ -25,5 +25,5 @@ ResourceDictionaryLocation.SourceAssembly )] -[assembly: AssemblyVersion("1.2.1.6")] -[assembly: AssemblyFileVersion("1.2.1.6")] \ No newline at end of file +[assembly: AssemblyVersion("1.2.1.7")] +[assembly: AssemblyFileVersion("1.2.1.7")] \ No newline at end of file