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

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

                _previewWindow.Hide();
            };

            _previewWindow.IsVisibleChanged += (S, E) => _visible = _previewWindow.IsVisible;
        }
예제 #3
0
        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();
            };
        }