make a WPF Popup not screen bound

后端 未结 2 1323
醉酒成梦
醉酒成梦 2021-01-18 02:02

The default behavior of a Popup is if it is placed where it would extend beyond the edge of the screen, the Popup will reposition itself. Is there a way to turn this behavio

2条回答
  •  走了就别回头了
    2021-01-18 02:32

    If you want the popup to behave more like a Window, I'd just make a Window instead of a Popup.

    Having a popup that doesn't position itself like a standard popup, and allows you to drag it around the screen, just seems like a recipe for low usability and confusion.

提交回复
热议问题