By default, the C1ComboBox control's drop-down list is only revealed when a user clicks the drop-down arrow. In this topic, you will write code that will cause the drop-down list to open whenever a user hovers over the control. This topic assumes that 1) you have already added a C1ComboBox control with at least one item to your project and 2) you are working in Expression Blend.
Complete the following:
1. Click the C1ComboBox control to select it.
2. In the Properties
window, click the Events button to reveal the control's
list of events.
3. Double-click inside of the MouseEnter text box. This will add the C1ComboBox_MouseEnter event handler to Code view.
4. Add the following code to the C1ComboBox1_MouseEnter event handler:
C1ComboBox1.IsDropDownOpen = True
•C#
c1ComboBox1.IsDropDownOpen = true;
5. Run the program.
This Topic Illustrates the Following:
With the program running, hover over the C1ComboBox control with your cursor. Observe that the drop-down list appears when you hover over the control. The drop-down list will stay open until you either select an item or click outside of the control.