tags:

views:

328

answers:

1

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 behavior off?

I have a Popup that the user can drag around the screen. However, when it gets to the edges it gets stuck. It gets stuck on the edge and stays there until the mouse is dragged far from the edge. Also, I have two monitors and when the Popup is dragged to the edge the two monitors share I get flickering. The Popup flickers between the two monitors.

+3  A: 

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.

Reed Copsey
Unfortunatly, there is functionality of a Popup that a Window doesn't have and is more important to me than freedom of motion. I guess I will have to restrict the movement so there is no chance of going beyond the screen bounds and thus no repositioning and no flickering. Thanks for the info.
Dan Vogel
Agreed. I want the popup to follow the window and prevent input into a WinForm control hosted in the WPF app (essentially a busy indicator) and if the window is dragged off the screen then the popup wont follow the window past the screen bounds.
Stephen Price