void ShowNavigatorWindow() { HideNavigatorWindow(); if (navigatorWindow == null) { navigatorWindow = new NavigatorWindow(this); navigatorWindow.Owner = Window.GetWindow(this); } Point locDockingManager = this.PointToScreenDPI(new Point()); navigatorWindow.Left = locDockingManager.X; navigatorWindow.Top = locDockingManager.Y; navigatorWindow.Width = this.ActualWidth; navigatorWindow.Height = this.ActualHeight; navigatorWindow.ShowActivated = false; navigatorWindow.Show(); //navigatorWindow.Focus(); }
void HideNavigatorWindow() { if (navigatorWindow != null) { navigatorWindow.Close(); navigatorWindow = null; } }