Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
655
PRISM View Removed from RegionManager collection upon Undock of ContentPane?
posted

This is something odd, when a contentpane is undocked and moved into a floating state PRISM V4 RegionManager seems to loose a reference to that ContentPane's injected region, causing some of my code that depends on this to fail.

Note: Re-docking seems to add the region back into the RegionManagers collection.

Any suggestions? I can probably figure this one out or a way around it but i wanted to bring it to your attention and see if perhaps you already have a solution.

Parents
No Data
Reply
  • 54937
    Verified Answer
    Offline posted

    Floating panes are hosted in a separate WPF Window so you probably need to handle the ToolWindowLoaded event and use the RegionManager.SetRegionManager method to set the region manager on the e.ToolWindow.

Children