ComboBox::StaysOpenOnEdit Property
.NET Framework (current version)
Gets or sets whether a ComboBox that is open and displays a drop-down control will remain open when a user clicks the TextBox.
Assembly: PresentationFramework (in PresentationFramework.dll)
Property Value
Type: System::Booleantrue to keep the drop-down control open when the user clicks on the text area to start editing; otherwise, false. The default is false.
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.
<ComboBox Name="cb" Margin="10,10,3,3" Width="200" Height="30" Grid.Column="0" Grid.Row="2" ItemsSource="{StaticResource myCities}" Text="My Cities" IsEditable="true" IsReadOnly="true" IsDropDownOpen="True" StaysOpenOnEdit="True"> </ComboBox>
.NET Framework
Available since 3.0
Available since 3.0
Show: