Пример #1
0
        private void DesktopWnd_Monitor(object e)
        {
            DesktopWindow dw = e as DesktopWindow;

            while (true)
            {
                if (dw == null || !dw.IsVisible)
                {
                    this.Dispatcher.Invoke(() =>
                    {
                        dw = new DesktopWindow();
                        dw.Show();
                    });
                }
            }
        }