diff --git a/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/ComboBoxBaseStyle.xaml b/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/ComboBoxBaseStyle.xaml index 9154c735..524b1108 100644 --- a/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/ComboBoxBaseStyle.xaml +++ b/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/ComboBoxBaseStyle.xaml @@ -81,7 +81,7 @@ - + @@ -105,6 +105,10 @@ + + + + @@ -144,7 +148,7 @@ - + @@ -168,6 +172,10 @@ + + + + @@ -205,7 +213,7 @@ - + @@ -229,6 +237,10 @@ + + + + @@ -280,7 +292,7 @@ - + @@ -304,6 +316,10 @@ + + + + @@ -343,7 +359,7 @@ - + @@ -367,6 +383,10 @@ + + + + @@ -404,7 +424,7 @@ - + @@ -428,6 +448,10 @@ + + + + @@ -574,7 +598,7 @@ - + @@ -600,6 +624,10 @@ + + + + @@ -675,7 +703,7 @@ - + @@ -701,6 +729,10 @@ + + + + @@ -779,7 +811,7 @@ - + @@ -805,6 +837,10 @@ + + + + @@ -900,7 +936,7 @@ - + @@ -912,7 +948,7 @@ - + @@ -941,6 +977,12 @@ + + + + + + @@ -1038,7 +1080,7 @@ - + @@ -1064,6 +1106,10 @@ + + + + @@ -1156,7 +1202,7 @@ - + @@ -1168,7 +1214,7 @@ - + @@ -1197,6 +1243,12 @@ + + + + + + diff --git a/src/Shared/HandyControl_Shared/Controls/Attach/DropDownElement.cs b/src/Shared/HandyControl_Shared/Controls/Attach/DropDownElement.cs index 8c70594a..3ac8d63b 100644 --- a/src/Shared/HandyControl_Shared/Controls/Attach/DropDownElement.cs +++ b/src/Shared/HandyControl_Shared/Controls/Attach/DropDownElement.cs @@ -14,5 +14,15 @@ namespace HandyControl.Controls public static bool GetConsistentWidth(DependencyObject element) => (bool) element.GetValue(ConsistentWidthProperty); + + public static readonly DependencyProperty AutoWidthProperty = DependencyProperty.RegisterAttached( + "AutoWidth", typeof(bool), typeof(DropDownElement), + new FrameworkPropertyMetadata(ValueBoxes.FalseBox, FrameworkPropertyMetadataOptions.Inherits)); + + public static void SetAutoWidth(DependencyObject element, bool value) + => element.SetValue(AutoWidthProperty, value); + + public static bool GetAutoWidth(DependencyObject element) + => (bool) element.GetValue(AutoWidthProperty); } } diff --git a/src/Shared/HandyControl_Shared/Themes/Styles/Base/ComboBoxBaseStyle.xaml b/src/Shared/HandyControl_Shared/Themes/Styles/Base/ComboBoxBaseStyle.xaml index 3ee766ca..97fddb20 100644 --- a/src/Shared/HandyControl_Shared/Themes/Styles/Base/ComboBoxBaseStyle.xaml +++ b/src/Shared/HandyControl_Shared/Themes/Styles/Base/ComboBoxBaseStyle.xaml @@ -81,7 +81,7 @@ - + @@ -105,6 +105,10 @@ + + + + @@ -151,7 +155,7 @@ - + @@ -175,6 +179,10 @@ + + + + @@ -219,7 +227,7 @@ - + @@ -243,6 +251,10 @@ + + + + @@ -301,7 +313,7 @@ - + @@ -325,6 +337,10 @@ + + + + @@ -371,7 +387,7 @@ - + @@ -395,6 +411,10 @@ + + + + @@ -439,7 +459,7 @@ - + @@ -463,6 +483,10 @@ + + + + @@ -616,7 +640,7 @@ - + @@ -642,6 +666,10 @@ + + + + @@ -724,7 +752,7 @@ - + @@ -750,6 +778,10 @@ + + + + @@ -835,7 +867,7 @@ - + @@ -861,6 +893,10 @@ + + + + @@ -963,7 +999,7 @@ - + @@ -975,7 +1011,7 @@ - + @@ -1004,6 +1040,12 @@ + + + + + + @@ -1108,7 +1150,7 @@ - + @@ -1134,6 +1176,10 @@ + + + + @@ -1233,7 +1279,7 @@ - + @@ -1245,7 +1291,7 @@ - + @@ -1274,6 +1320,12 @@ + + + + + + diff --git a/src/Shared/HandyControl_Shared/Themes/XamlCombine.exe b/src/Shared/HandyControl_Shared/Themes/XamlCombine.exe index c88411e4..44f393d3 100644 Binary files a/src/Shared/HandyControl_Shared/Themes/XamlCombine.exe and b/src/Shared/HandyControl_Shared/Themes/XamlCombine.exe differ