diff --git a/HandyControl/Controls/Attach/InfoElement.cs b/HandyControl/Controls/Attach/InfoElement.cs index 04df5f96..6a4cf320 100644 --- a/HandyControl/Controls/Attach/InfoElement.cs +++ b/HandyControl/Controls/Attach/InfoElement.cs @@ -65,5 +65,15 @@ namespace HandyControl.Controls public static void SetTitleWidth(DependencyObject element, GridLength value) => element.SetValue(TitleWidthProperty, value); public static GridLength GetTitleWidth(DependencyObject element) => (GridLength)element.GetValue(TitleWidthProperty); + + /// + /// 内容高度 + /// + public static readonly DependencyProperty ContentHeightProperty = DependencyProperty.RegisterAttached( + "ContentHeight", typeof(double), typeof(InfoElement), new PropertyMetadata(30.0)); + + public static void SetContentHeight(DependencyObject element, double value) => element.SetValue(ContentHeightProperty, value); + + public static double GetContentHeight(DependencyObject element) => (double)element.GetValue(ContentHeightProperty); } } \ No newline at end of file diff --git a/HandyControl/Controls/TimePicker.cs b/HandyControl/Controls/TimePicker.cs index 28605a8c..d1781a80 100644 --- a/HandyControl/Controls/TimePicker.cs +++ b/HandyControl/Controls/TimePicker.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; @@ -250,6 +251,7 @@ namespace HandyControl.Controls public override void OnApplyTemplate() { + if (DesignerProperties.GetIsInDesignMode(this)) return; if (_popUp != null) { _popUp.RemoveHandler(PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(PopUp_PreviewMouseLeftButtonDown)); diff --git a/HandyControl/Properties/AssemblyInfo.cs b/HandyControl/Properties/AssemblyInfo.cs index 21296cda..05f94427 100644 --- a/HandyControl/Properties/AssemblyInfo.cs +++ b/HandyControl/Properties/AssemblyInfo.cs @@ -10,5 +10,5 @@ using System.Runtime.InteropServices; [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] -[assembly: AssemblyVersion("1.3.1.0")] -[assembly: AssemblyFileVersion("1.3.1.0")] +[assembly: AssemblyVersion("1.3.1.1")] +[assembly: AssemblyFileVersion("1.3.1.1")] diff --git a/HandyControl/Themes/Styles/Base/ComboBoxBaseStyle.xaml b/HandyControl/Themes/Styles/Base/ComboBoxBaseStyle.xaml index fe644631..d4eb6ca9 100644 --- a/HandyControl/Themes/Styles/Base/ComboBoxBaseStyle.xaml +++ b/HandyControl/Themes/Styles/Base/ComboBoxBaseStyle.xaml @@ -32,6 +32,32 @@ + + @@ -51,7 +77,7 @@ - + @@ -92,17 +118,16 @@ - + - + - @@ -115,8 +140,8 @@ - - + + @@ -154,17 +179,16 @@ - + - + - @@ -177,8 +201,8 @@ - - + + @@ -220,13 +244,14 @@ + - + @@ -251,8 +276,8 @@ - - + + @@ -301,17 +326,16 @@ - + - + - @@ -324,9 +348,10 @@ - + + - + @@ -372,17 +397,16 @@ - + - + - @@ -395,9 +419,10 @@ - + + - + @@ -510,6 +535,7 @@ + diff --git a/HandyControl/Themes/Styles/Base/DatePickerBaseStyle.xaml b/HandyControl/Themes/Styles/Base/DatePickerBaseStyle.xaml index 81d8072e..48ef45a7 100644 --- a/HandyControl/Themes/Styles/Base/DatePickerBaseStyle.xaml +++ b/HandyControl/Themes/Styles/Base/DatePickerBaseStyle.xaml @@ -16,9 +16,9 @@ - + - + @@ -36,6 +36,7 @@ + @@ -48,7 +49,7 @@