Skip to content

Commit 509c9d7

Browse files
authored
Merge pull request #4478 from Ifry/patch-2
Make MultiSelectionComboBox DropDown respect MaxDropDownHeight value
2 parents 8f1d02b + 269bfc4 commit 509c9d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MahApps.Metro/Themes/MultiSelectionComboBox.xaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
438438
<Grid MinWidth="{Binding ActualWidth, RelativeSource={RelativeSource TemplatedParent}}" MaxHeight="{Binding MaxDropDownHeight, RelativeSource={RelativeSource TemplatedParent}}">
439439
<mah:ClipBorder x:Name="PopupBorder"
440-
Height="200"
440+
Height="Auto"
441441
HorizontalAlignment="Stretch"
442442
Background="{DynamicResource MahApps.Brushes.ThemeBackground}"
443443
BorderBrush="{DynamicResource MahApps.Brushes.ComboBox.PopupBorder}"
@@ -670,4 +670,4 @@
670670
<Setter Property="mah:ScrollViewerHelper.IsHorizontalScrollWheelEnabled" Value="True" />
671671
</Style>
672672

673-
</ResourceDictionary>
673+
</ResourceDictionary>

0 commit comments

Comments
 (0)