This project is read-only.

[Version 2.0] How to get LayoutAnchorableFloatingWindowControl from LayoutAnchorablePaneGroupControl?

May 16, 2012 at 12:36 AM

When I sdock the content to a new LayoutAnchorableFloatingWindow, I need to access the Window control from the LayoutAnchorablePaneGroupControl.

From the content I can access the LayoutAnchorablePaneGroupControl navigating in the VisualTree, but I can't obtain the Window Control.

I can take the LayoutFloatingWindow but not the LayoutFloatingWindowControl, how can I access it ? I need it because I have to set this window as the Owner of a custom window that I need to show on top of the floatingwindow.

May 16, 2012 at 4:15 PM

I've added the property FloatingWindows to the DockingManager that returns the list of floating windows.

Sample code to get the correct floating window starting from the anchorable (not tested):

var manager = anchorable.Root.Manager;
var floatingWindow = manager.FloatingWindows.Single(fw => fw.Model.Descendents().Contains(anchorable));

May 17, 2012 at 9:08 PM

Thanks.