How does a ComboBox capture mouse when it is dropped-down?

后端 未结 2 407
闹比i
闹比i 2021-01-12 09:50

I am trying to model the behavior of a ComboBox dropdown (or other drop downs for that matter, including context menus) where the drop down closes when you click anywhere el

2条回答
  •  萌比男神i
    2021-01-12 10:39

    The templates of the controls you've mentioned are using for the dropdown lists a popup as a container with the StaysOpen property set on false (which is the default i think).

    ComboBox template example

提交回复
热议问题