To launch the ComboBox with its drop-down list open, set the IsDropDownOpen property to True.
In XAML
Complete the following steps:
- Add IsDropDownOpen="True" to the <c1:C1ComboBox> tag so that the markup resembles the following:
<c1:C1ComboBox HorizontalAlignment="Left" Width="249" IsDropDownOpen="True">
- Run the program and observe that the drop-down list is open upon page load.
In Code
Complete the following steps:
- Add x:Name="C1ComboBox1" to the <c1:C1ComboBox> tag so that the object will have a unique identifier for you to call in code.
- Open the MainPage.xaml.cs or the MainWindow.xaml.cs page.
- Add the following code beneath the InitializeComponent() method:
C1ComboBox1.IsDropDownOpen = True
C1ComboBox1.IsDropDownOpen = true;
- Run the program and observe that the drop-down list is open upon page load.
In the Designer
Complete the following steps:
- Click the C1ComboBox control once to select it.
- In the Properties window, select the IsDropDownOpen check box.
- Run the program and observe that the drop-down list is open upon page load.