DropDownClosed Event
Collapse the table of content
Expand the table of content

ComboBox.DropDownClosed Event


Occurs when the drop-down list of the combo box closes.

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

public event EventHandler DropDownClosed

The following example shows how to assign event handlers and how to handle the DropDownOpened and DropDownClosed events.

<ComboBox Name="cb" StaysOpenOnEdit="true" IsEditable="true" DropDownOpened="OnDropDownOpened" 
void OnDropDownOpened(object sender, EventArgs e)
    if (cb.IsDropDownOpen == true)
        cb.Text = "Combo box opened";

void OnDropDownClosed(object sender, EventArgs e)
    if (cb.IsDropDownOpen == false)
        cb.Text = "Combo box closed";

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft