By default, the C1DropDown control's drop-down box only opens when users click on the drop-down arrow at run time. In this topic you'll set the drop-down box to open when users mouse over the control at run-time instead. Note that this topic assumes you have already added a C1DropDown control which contains content to the application.
Complete the following steps:
C# Copy Codeusing C1.Xaml;
C# Copy Code private void C1DropDown_IsMouseOverChanged(object sender, PropertyChangedEventArgs<bool> e) { if (c1dropdown1.IsMouseOver == true) { c1dropdown1.IsDropDownOpen = true; } else { c1dropdown1.IsDropDownOpen = false; } }
What You've Accomplished
In this topic you added code so that the drop-down box opens when moused over at run time using the IsDropDownOpen property. Run the application and move the mouse over the control. Notice that the drop-down box opens. Move the mouse away from the control and observe that the drop-down box closes.