Skip to content

Commit

Permalink
Make MultiSelectionComboBox DropDown respect MaxDropDownHeight value
Browse files Browse the repository at this point in the history
Currently MultiSelectionComboBox drop down height is always 200 and can't be changed. It should respect MaxDropDownHeight value. 
Change would make behavior similar to ComboBox style
  • Loading branch information
Ifry authored Apr 10, 2024
1 parent 8f1d02b commit 269bfc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MahApps.Metro/Themes/MultiSelectionComboBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
<Grid MinWidth="{Binding ActualWidth, RelativeSource={RelativeSource TemplatedParent}}" MaxHeight="{Binding MaxDropDownHeight, RelativeSource={RelativeSource TemplatedParent}}">
<mah:ClipBorder x:Name="PopupBorder"
Height="200"
Height="Auto"
HorizontalAlignment="Stretch"
Background="{DynamicResource MahApps.Brushes.ThemeBackground}"
BorderBrush="{DynamicResource MahApps.Brushes.ComboBox.PopupBorder}"
Expand Down Expand Up @@ -670,4 +670,4 @@
<Setter Property="mah:ScrollViewerHelper.IsHorizontalScrollWheelEnabled" Value="True" />
</Style>

</ResourceDictionary>
</ResourceDictionary>

0 comments on commit 269bfc4

Please sign in to comment.