Why does a WPF Popup close when its background area is clicked?

前端 未结 5 1117
温柔的废话
温柔的废话 2020-12-14 01:47

I have a WPF Popup control that contains some editing controls (list boxes, text boxes, check boxes) laid out with quite a bit of whitespace.

Popu

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 02:40

    you can set StayOpen=true,and set a timer,in the Popup's MouseLeave event timer.Start(),such as after 3 seconds,close this popup,in the MouseEnter event,timer.Stop(). It will works.

提交回复
热议问题