Windows Dev Center

ComboBox.MaxDropDownHeight property

Gets or sets the maximum height for a combo box drop-down.

Syntax


public double MaxDropDownHeight { get; set; }


<ComboBox MaxDropDownHeight="double"/>

Property value

Type: System.Double [.NET] | float64 [C++]

The maximum height of the drop-down. The default is infinity.

Remarks

Note  In Windows 8, this property is ignored. If this property is set incorrectly (set to 0, for example) in an app that's compiled for Windows 8, the app might behave incorrectly or crash when it's run in Windows 8.1. You should set this property to a value of 76 or greater to make sure the scroll buttons show and behave correctly when the ComboBox is open.
 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

ComboBox

 

 

Show:
© 2015 Microsoft