84 references to CurrentDispatcher
PresentationCore (12)
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (1)
282using (Dispatcher.CurrentDispatcher.DisableProcessing())
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (1)
900Dispatcher dispatcher = Dispatcher.CurrentDispatcher;
Core\CSharp\System\Windows\Input\DefaultTextStore.cs (1)
258defaulttextstore = new DefaultTextStore(Dispatcher.CurrentDispatcher);
Core\CSharp\System\Windows\Input\InputManager.cs (1)
157Dispatcher dispatcher = Dispatcher.CurrentDispatcher;
Core\CSharp\System\Windows\Interop\HwndSource.cs (1)
2008object result = Dispatcher.CurrentDispatcher.Invoke(
Core\CSharp\System\Windows\LayoutManager.cs (1)
64if(Dispatcher.CurrentDispatcher != dispatcher)
Core\CSharp\System\Windows\Media\CompositionTarget.cs (2)
643MediaContext mc = MediaContext.From(Dispatcher.CurrentDispatcher); 651MediaContext mc = MediaContext.From(Dispatcher.CurrentDispatcher);
Core\CSharp\System\Windows\Media\MediaContext.cs (1)
1440return From(Dispatcher.CurrentDispatcher);
Core\CSharp\System\Windows\Media\TextFormatting\TextFormatter.cs (1)
128Dispatcher dispatcher = Dispatcher.CurrentDispatcher;
Core\CSharp\System\Windows\OleServicesContext.cs (2)
205InputManager inputManager = (InputManager)Dispatcher.CurrentDispatcher.InputManager; 293Dispatcher.CurrentDispatcher.ShutdownFinished += new EventHandler(OnDispatcherShutdown);
PresentationFramework (44)
src\Framework\MS\Internal\Data\AccessorTable.cs (1)
110Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.ContextIdle, new DispatcherOperationCallback(CleanupOperation), null);
src\Framework\MS\Internal\Data\CollectionViewGroupInternal.cs (1)
606Dispatcher.CurrentDispatcher.BeginInvoke(
src\Framework\MS\Internal\Documents\DocumentGrid.cs (2)
1977_setScaleOperation = Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Input, 2080Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Input,
src\Framework\MS\Internal\Documents\PageCache.cs (4)
332Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal, 461Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal, 500Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal, 582Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal,
src\Framework\MS\Internal\Helper.cs (1)
56Dispatcher.CurrentDispatcher.WrappedInvoke(new DispatcherOperationCallback(DoTryCatchWhen),
src\Framework\MS\Internal\PtsHost\PtsCache.cs (4)
102PtsCache ptsCache = Dispatcher.CurrentDispatcher.PtsCache as PtsCache; 120PtsCache ptsCache = Dispatcher.CurrentDispatcher.PtsCache as PtsCache; 131Dispatcher dispatcher = Dispatcher.CurrentDispatcher; 134PtsCache ptsCache = Dispatcher.CurrentDispatcher.PtsCache as PtsCache;
src\Framework\MS\Internal\PtsHost\PtsPage.cs (1)
290_backgroundFormatOperation = Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, BackgroundUpdateCallback, this);
src\Framework\System\Windows\Controls\DataGrid.cs (1)
1158Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row);
src\Framework\System\Windows\Controls\DataGridRow.cs (2)
810Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DataGrid.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row); 820Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DelayedRowDetailsVisibilityChanged), DispatcherPriority.Loaded, row);
src\Framework\System\Windows\Data\Binding.cs (1)
230if (System.Windows.Threading.Dispatcher.CurrentDispatcher == null)
src\Framework\System\Windows\Documents\Adorner.cs (1)
61Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(CreateFlowDirectionBinding), this);
src\Framework\System\Windows\Documents\AdornerLayer.cs (1)
145internal AdornerLayer() : this(Dispatcher.CurrentDispatcher)
src\Framework\System\Windows\Documents\Speller.cs (1)
541Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new DispatcherOperationCallback(OnIdle), null);
src\Framework\System\windows\Documents\TextEditor.cs (1)
1639Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(InitTextStore), null);
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
682Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(ReleaseCandidateList), null);
src\Framework\System\windows\Documents\TextEditorTyping.cs (5)
106This._dispatcher = Dispatcher.CurrentDispatcher; 119Dispatcher.CurrentDispatcher.ShutdownFinished += new EventHandler(OnDispatcherShutdownFinished); 144Dispatcher.CurrentDispatcher.ShutdownFinished -= new EventHandler(OnDispatcherShutdownFinished); 1625Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(BackgroundInputCallback), This); 1695Dispatcher.CurrentDispatcher.ShutdownFinished -= new EventHandler(OnDispatcherShutdownFinished);
src\Framework\System\windows\Documents\TextSelection.cs (1)
762Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Loaded, new DispatcherOperationCallback(UpdateCaretStateWorker), null);
src\Framework\System\Windows\Documents\TextStore.cs (2)
191Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(GrantLockHandler), null); 1773Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(CompleteCompositionHandler), null);
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
109_dispatcher = new WeakReference<Dispatcher>(Dispatcher.CurrentDispatcher);
src\Framework\System\Windows\Markup\XamlReader.cs (2)
467Dispatcher.CurrentDispatcher.BeginInvoke(priority, callback, this); 598Dispatcher.CurrentDispatcher.BeginInvoke(
src\Framework\System\Windows\Navigation\NavigationService.cs (5)
1216Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(disposeItem.Dispatch), null); 2884RequestState requestState = new RequestState(_request, source, navState, Dispatcher.CurrentDispatcher); 3021if (Dispatcher.CurrentDispatcher != callbackDispatcher) 3161BindStream bindStream = new BindStream(s, contentLength, cleanSource, (IContentContainer)this, Dispatcher.CurrentDispatcher); 4689_postedOp = Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(this.Dispatch), null);
src\Framework\System\Windows\PropertyPath.cs (1)
82if (System.Windows.Threading.Dispatcher.CurrentDispatcher == null)
src\Framework\System\Windows\Standard\MessageWindow.cs (1)
114_dispatcher = Dispatcher.CurrentDispatcher;
src\Framework\System\Windows\SystemResources.cs (1)
1743Dispatcher d = Dispatcher.CurrentDispatcher;
src\Framework\System\Windows\Window.cs (2)
3756if (Application.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread) 4694if (Application.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
System.Activities.Presentation (19)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UIThreadDispatcher.cs (1)
28this.uiThreadDispatcher = Dispatcher.CurrentDispatcher;
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (1)
157this.bringToViewCurrentLocationOperation = Dispatcher.CurrentDispatcher.BeginInvoke(
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
359Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle,
System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (1)
62Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Render, (Action)(() =>
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (8)
719Dispatcher.CurrentDispatcher.BeginInvoke(new Action<ModelItemFocusHelper>((p) => { p.Focus(); }), DispatcherPriority.ContextIdle, focusTicket); 739Dispatcher.CurrentDispatcher.BeginInvoke(this.onSetDesignerContentVisibilityDelegate, DispatcherPriority.ApplicationIdle, Visibility.Visible); 813Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() => { this.Expand(null); }), enqueueFirstExpand ? DispatcherPriority.ContextIdle : DispatcherPriority.Send); 887Dispatcher.CurrentDispatcher.BeginInvoke(this.onElementFocusingDelegate, DispatcherPriority.ContextIdle, currentItem); 889Dispatcher.CurrentDispatcher.BeginInvoke(this.onForceElementFocusDelegate, DispatcherPriority.ContextIdle); 926Dispatcher.CurrentDispatcher.BeginInvoke(this.onContainerPopulatingDelegate, priority, virtualContainer); 930Dispatcher.CurrentDispatcher.BeginInvoke(this.onElementFocusingDelegate, priority, dispatchParameter); 1011Dispatcher.CurrentDispatcher.BeginInvoke(this.onElementFocusingDelegate, DispatcherPriority.ContextIdle, item);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
676Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() =>
System.Activities.Presentation\System\Activities\Presentation\TaskDispatcher.cs (1)
21this.dispatcher = Dispatcher.CurrentDispatcher;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
1563Dispatcher.CurrentDispatcher.BeginInvoke(new Action<DesignObjectWrapper>((instance) =>
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1393Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new Action(() =>
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
714this.dispatcherOperation = Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Input, new Func<TypeNode>(this.OnRun));
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (2)
144Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Render, (Action)(() => 176Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Loaded, (Action)(() =>
WindowsBase (9)
Base\MS\Internal\ShutDownListener.cs (1)
92Dispatcher dispatcher = Dispatcher.CurrentDispatcher;
Base\System\Windows\Data\DataSourceProvider.cs (1)
47_dispatcher = Dispatcher.CurrentDispatcher;
Base\System\Windows\SplashScreen.cs (2)
121Dispatcher.CurrentDispatcher.BeginInvoke( 129_dispatcher = Dispatcher.CurrentDispatcher;
Base\System\Windows\Threading\Dispatcher.cs (2)
352Dispatcher dispatcher = Dispatcher.CurrentDispatcher; 389Dispatcher dispatcher = Dispatcher.CurrentDispatcher;
Base\System\Windows\Threading\DispatcherObject.cs (1)
128_dispatcher = Dispatcher.CurrentDispatcher;
Base\System\Windows\Threading\DispatcherSynchronizationContext.cs (1)
21public DispatcherSynchronizationContext(): this(Dispatcher.CurrentDispatcher, DispatcherPriority.Normal)
Base\System\Windows\Threading\DispatcherTimer.cs (1)
33Initialize(Dispatcher.CurrentDispatcher, priority, TimeSpan.FromMilliseconds(0));