I need to detect if DockingWindow is docked to PrimaryDockHost when i drag docking window from floating window to primary dock host. When I undock first window and drag to somethere I receive DockSite.WindowsDragged event but both it's properties IsFloating is false and DockSite equals to PrimaryDockHost. If I undock the second window and drag into floating window container with first window then it's IsFloating = true and DockSite is not PrimaryDockHost. Currently, Code excerpt bellow:
if (!dockingWindow.IsFloating && dockingWindow.DockHost == dockingWindow.DockSite.PrimaryDockHost)
// Do something
Is there way to correctly detect if window dragged and docked into PrimaryDockHost?