private void HooksOperationCompleted(object sender, System.Windows.Threading.DispatcherHookEventArgs e) { if (e.Operation.Priority == DispatcherPriority.Render) { this.UpdateIcon(); } }
private void hooksOnOperationPosted(object sender, DispatcherHookEventArgs dispatcherHookEventArgs) { if (m_Timer != null) { m_Timer.Stop(); } }
void Hooks_OperationPosted(object sender, System.Windows.Threading.DispatcherHookEventArgs e) { // this event handler runs in a separate thread; therefore we have to use // the window's dispatcher queue to schedule a procedure incrementing // the counter (=a dependency property). Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new QueueEventsDelegate(IncrementOperationsCounter)); }