Esempio n. 1
0
 public ApplicationWindow(IntPtr handle, WindowsTasksService sourceService)
 {
     this.Handle = handle;
     this.State  = WindowState.Active;
     if (sourceService != null)
     {
         sourceService.Redraw += HandleRedraw;
     }
 }
        public ApplicationWindow(IntPtr handle, WindowsTasksService sourceService)
        {
            Handle = handle;
            State  = WindowState.Inactive;

            if (sourceService != null)
            {
                TasksService = sourceService;
            }
        }
Esempio n. 3
0
        public ApplicationWindow(IntPtr handle, WindowsTasksService sourceService)
        {
            this.Handle = handle;
            this.State  = WindowState.Inactive;
            if (sourceService != null)
            {
                TasksService = sourceService;
            }

            if (Configuration.Settings.EnableTaskbarPolling)
            {
                VisCheck = new DispatcherTimer(new TimeSpan(0, 0, 2), DispatcherPriority.Background, delegate
                {
                    // some windows don't send a redraw notification after a property changes, try to catch those cases here
                    OnPropertyChanged("Title");
                    OnPropertyChanged("ShowInTaskbar");
                }, Application.Current.Dispatcher);
            }
        }