WPF Popup disappears upon undock

Docking/MDI for WPF Forum

Posted 12 years ago by Greg Shaffer
Version: 10.1.0521

I've placed a WPF popup within a UserControl that's hosted in a ToolWindow within a DockSite. When I undock the ToolWindow, the WPF Popup disappears, even though I have StaysOpen set to true.

Is there anything related to the Actipro API I might leverage to prevent the Popup from closing?


Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Greg,

There's nothing available in our classes that would automatically reopen a Popup after it's ToolWindow ancestor is floated (or docked). The Popup will close when it's removed from the visual tree (as the ToolWindow is being floated/docked), so you would need to reopen it when it's added back into the visual tree as needed.

You might be able to add handlers for Loaded/Unloaded or maybe IsVisibleChanged to your UserControl to save/restore whether the popup is open.

Actipro Software Support

The latest build of this product (v22.1.3) was released 19 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.