Beispiel #1
0
        public PreviewWindowService()
        {
            // Prevent Closing by User
            _previewWindow.Closing += (S, E) =>
            {
                E.Cancel = true;

                _previewWindow.Hide();
            };
        }
Beispiel #2
0
        public PreviewWindowService()
        {
            // Prevent Closing by User
            _previewWindow.Closing += (S, E) =>
            {
                E.Cancel = true;

                _previewWindow.Hide();
            };

            _previewWindow.IsVisibleChanged += (S, E) => _visible = _previewWindow.IsVisible;
        }
        public PreviewWindowService()
        {
            _previewWindow.IsVisibleChanged += (sender, e) => _visible = _previewWindow.IsVisible;

            _visible = _previewWindow.IsVisible;

            // Prevent Closing by User
            _previewWindow.Closing += (sender, e) =>
            {
                e.Cancel = true;

                _previewWindow.Hide();
            };
        }