WPF Popup disappears upon undock

Docking/MDI for WPF Forum

Posted 9 years ago by Greg Shaffer
Version: 10.1.0521
Avatar
Hi,

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?

Thanks,
Greg

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.