StaysOpenOnEdit Property

ComboBox.StaysOpenOnEdit Property


Gets or sets whether a ComboBox that is open and displays a drop-down control will remain open when a user clicks the TextBox.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool StaysOpenOnEdit { get; set; }

Property Value

Type: System.Boolean

true to keep the drop-down control open when the user clicks on the text area to start editing; otherwise, false. The default is false.

Identifier field


Metadata properties set to true


This example shows how to use the StaysOpenOnEdit property to create a combo box whose drop-down control stays open while the user enters information into the text box.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft