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
25
Floating panes with CAL
posted

Hello,

I am currently evaluating the xamDockManager but I cannot get it working with CAL using floating panes. When I try to add a view to a region that is within a floating pane I get an exception that the region does not exists. Adding views to regions that are not floating works as expected. It seems that the floating pane does not get the region name though the region name has been defined in XAML .

What is the recommended way to use CAL with floating panes?

 

Thanks,

Dominik

Parents
  • 54937
    Offline posted

    Do you have a sample that demonstrates the problem? My assumption is that since the floating panes are hosted in top level windows the RegionManager attached property is not propogated to them so you could try hooking the ToolWindowLoaded event of the xamDockManager and set the ToolWindow's regionmanager to that of the xamdockmanager. Perhaps something like: e.ToolWindow.SetBinding(RegionManager.RegionManagerProperty, Utilities.CreateBinding(RegionManager.RegionManagerProperty, BindingMode.OneWay, XamDockManager.GetDockManager(e.ToolWindow)));

Reply Children