Ejemplo n.º 1
0
        private void StopSelectWindow(Window window)
        {
            Focusable = false;
            ReleaseMouseCapture();
            Mouse.OverrideCursor = null;
            Image.Source         = _defaultImageSource;

            _currentWindowHwnd = IntPtr.Zero;

            _currentWindow = null;

            if (_currentFrameWindow != null)
            {
                _currentFrameWindow.Hide();
                _currentFrameWindow.Close();
                _currentFrameWindow = null;
            }

            OnEndSelectWindow(new RoutedWindowEventArgs(EndSelectWindowEvent, window));
        }