Пример #1
0
        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();
        }
Пример #2
0
 void HideNavigatorWindow()
 {
     if (navigatorWindow != null)
     {
         navigatorWindow.Close();
         navigatorWindow = null;
     }
 }