Ejemplo n.º 1
0
            private void ShowOverlayWindow()
            {
                _overlayWindow = OverlayWindow.Show(DockControl);
                SetStartMousePosition(_overlayWindow, _overlayWindow.PointFromScreen(_startMousePoint));
                foreach (FloatingWindow floatingWindow in DockControl.FloatingWindows)
                {
                    if (!floatingWindow.IsVisible)
                    {
                        continue;
                    }

                    NativeFloatingWindow nativeWindow = NativeFloatingWindow.GetNativeFloatingWindow(floatingWindow);
                    if (nativeWindow == null)
                    {
                        continue;
                    }

                    Point pointFromScreen = _startMousePoint;
                    try
                    {
                        pointFromScreen = nativeWindow.PointFromScreen(_startMousePoint);
                    }
                    catch (Exception e)
                    {
                        Debug.WriteLine(@"pointFromScreen: " + pointFromScreen);
                        Debug.WriteLine(e);
                    }
                    SetStartMousePosition(nativeWindow, pointFromScreen);
                }
            }
Ejemplo n.º 2
0
 private void ShowOverlayWindow()
 {
     _overlayWindow = OverlayWindow.Show(DockControl);
     SetStartMousePosition(_overlayWindow, _overlayWindow.PointFromScreen(_startMousePoint));
     foreach (FloatingWindow floatingWindow in DockControl.FloatingWindows)
     {
         NativeFloatingWindow nativeWindow = NativeFloatingWindow.GetNativeFloatingWindow(floatingWindow);
         SetStartMousePosition(nativeWindow, nativeWindow.PointFromScreen(_startMousePoint));
     }
 }