ComboBox.StaysOpenOnEdit Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
property bool StaysOpenOnEdit { bool get(); void set(bool value); };
public bool StaysOpenOnEdit { get; set; }
member this.StaysOpenOnEdit : bool with get, set
Public Property StaysOpenOnEdit As Boolean
Property Value
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
.
Examples
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>
Remarks
Dependency Property Information
Identifier field | StaysOpenOnEditProperty |
Metadata properties set to true |
None |
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.