你好,
可以使用 IsMouseDirectlyOverChanged 来实现。
private void ComboBox_IsMouseDirectlyOverChanged(object sender, DependencyPropertyChangedEventArgs e)
{
if (combo1.IsDropDownOpen == true)
{
combo1.IsDropDownOpen = false;
}
}
Best regards,
Zhanglong
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.