diff --git a/src/Avalonia.Controls/DropDown.cs b/src/Avalonia.Controls/DropDown.cs
index da5dd5daaf..0b1371b10e 100644
--- a/src/Avalonia.Controls/DropDown.cs
+++ b/src/Avalonia.Controls/DropDown.cs
@@ -28,6 +28,12 @@ namespace Avalonia.Controls
o => o.IsDropDownOpen,
(o, v) => o.IsDropDownOpen = v);
+ ///
+ /// Defines the property.
+ ///
+ public static readonly StyledProperty MaxDropDownHeightProperty =
+ AvaloniaProperty.Register(nameof(MaxDropDownHeight), 200);
+
///
/// Defines the property.
///
@@ -56,6 +62,15 @@ namespace Avalonia.Controls
set { SetAndRaise(IsDropDownOpenProperty, ref _isDropDownOpen, value); }
}
+ ///
+ /// Gets or sets the maximum height for the dropdown list.
+ ///
+ public double MaxDropDownHeight
+ {
+ get { return GetValue(MaxDropDownHeightProperty); }
+ set { SetValue(MaxDropDownHeightProperty, value); }
+ }
+
///
/// Gets or sets the item to display as the control's content.
///
diff --git a/src/Avalonia.Themes.Default/DropDown.xaml b/src/Avalonia.Themes.Default/DropDown.xaml
index 25bea8f886..c33e4af4f4 100644
--- a/src/Avalonia.Themes.Default/DropDown.xaml
+++ b/src/Avalonia.Themes.Default/DropDown.xaml
@@ -30,16 +30,19 @@
Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z"/>
-
+
+
+