2 instantiations of Dispatcher
WindowsBase (2)
Base\System\Windows\Threading\Dispatcher.cs (1)
69currentDispatcher = new Dispatcher();
Base\System\Windows\Threading\DispatcherObject.cs (1)
62Dispatcher sentinelDispatcher = new Dispatcher(isSentinel:true);
267 references to Dispatcher
PresentationCore (68)
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (1)
206Dispatcher dispatcher = peer.Dispatcher;
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (1)
282using (Dispatcher.CurrentDispatcher.DisableProcessing())
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (2)
900Dispatcher dispatcher = Dispatcher.CurrentDispatcher;
Core\CSharp\System\Windows\Input\DefaultTextStore.cs (3)
46internal DefaultTextStore(Dispatcher dispatcher) 258defaulttextstore = new DefaultTextStore(Dispatcher.CurrentDispatcher); 390private readonly Dispatcher _dispatcher;
Core\CSharp\System\Windows\Input\InputManager.cs (2)
157Dispatcher dispatcher = Dispatcher.CurrentDispatcher;
Core\CSharp\System\Windows\Input\InputMethod.cs (2)
474Dispatcher dispatcher = Dispatcher.FromThread(Thread.CurrentThread);
Core\CSharp\System\Windows\Input\TextServicesContext.cs (1)
570textServicesContext.Uninitialize(!(sender is Dispatcher) /*appDomainShutdown*/);
Core\CSharp\System\Windows\Interop\HwndSource.cs (3)
2008object result = Dispatcher.CurrentDispatcher.Invoke( 3089public WeakEventDispatcherShutdown(HwndSource source, Dispatcher that): base(source) 3116private Dispatcher _that;
Core\CSharp\System\Windows\LayoutManager.cs (2)
59internal static ContextLayoutManager From(Dispatcher dispatcher) 64if(Dispatcher.CurrentDispatcher != dispatcher)
Core\CSharp\System\Windows\Media\Animation\AnimationClockResource.cs (1)
79System.Windows.Threading.Dispatcher dispatcher = ((System.Windows.Threading.DispatcherObject)sender).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\Effects\Generated\ShaderEffect.cs (1)
116System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (1)
536System.Windows.Threading.Dispatcher dispatcher = this.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\BitmapCacheBrush.cs (2)
123System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 184System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\Brush.cs (2)
124System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 172System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\CombinedGeometry.cs (2)
123System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 171System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\DrawingBrush.cs (1)
116System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\DrawingGroup.cs (4)
207System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 262System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 310System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 358System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\DrawingImage.cs (1)
116System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\Geometry.cs (1)
119System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\GeometryDrawing.cs (3)
116System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 164System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 212System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\GlyphRunDrawing.cs (2)
97System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 145System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\ImageBrush.cs (1)
116System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\ImageDrawing.cs (1)
116System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\Pen.cs (2)
116System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 206System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\VideoDrawing.cs (1)
97System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Generated\VisualBrush.cs (1)
122System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
472Dispatcher dispatcher = decoder.Dispatcher;
Core\CSharp\System\Windows\Media\MediaContext.cs (5)
209internal MediaContext(Dispatcher dispatcher) 1420internal static MediaContext From(Dispatcher dispatcher) 1440return From(Dispatcher.CurrentDispatcher); 1525internal static void RegisterICompositionTarget(Dispatcher dispatcher, ICompositionTarget iv) 1566internal static void UnregisterICompositionTarget(Dispatcher dispatcher, ICompositionTarget iv)
Core\CSharp\System\Windows\Media\MediaEventsHelper.cs (1)
565private Dispatcher _dispatcher;
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (2)
559internal Dispatcher Dispatcher 1395private Dispatcher _dispatcher = null;
Core\CSharp\System\Windows\Media\TextFormatting\TextFormatter.cs (2)
128Dispatcher dispatcher = Dispatcher.CurrentDispatcher;
Core\CSharp\System\Windows\Media3D\Generated\Camera.cs (1)
112System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media3D\Generated\DiffuseMaterial.cs (1)
126System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media3D\Generated\EmissiveMaterial.cs (1)
119System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media3D\Generated\GeometryModel3D.cs (3)
112System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 162System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher; 212System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media3D\Generated\Model3D.cs (1)
112System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media3D\Generated\RotateTransform3D.cs (1)
141System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\Media3D\Generated\SpecularMaterial.cs (1)
119System.Windows.Threading.Dispatcher dispatcher = target.Dispatcher;
Core\CSharp\System\Windows\OleServicesContext.cs (2)
205InputManager inputManager = (InputManager)Dispatcher.CurrentDispatcher.InputManager; 293Dispatcher.CurrentDispatcher.ShutdownFinished += new EventHandler(OnDispatcherShutdown);
PresentationFramework (89)
src\Framework\MS\Internal\Data\AccessorTable.cs (1)
110Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.ContextIdle, new DispatcherOperationCallback(CleanupOperation), null);
src\Framework\MS\Internal\Data\BindingWorker.cs (1)
90protected Dispatcher Dispatcher { get { return ParentBindingExpression.Dispatcher; } }
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\Ink\HighContrastHelper.cs (1)
47internal abstract Dispatcher Dispatcher
src\Framework\MS\Internal\Navigation\BindStream.cs (2)
35Uri uri, IContentContainer cc, Dispatcher callbackDispatcher) 487Dispatcher _callbackDispatcher;
src\Framework\MS\Internal\PtsHost\PtsCache.cs (6)
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; 162private PtsCache(Dispatcher dispatcher)
src\Framework\MS\Internal\PtsHost\PtsPage.cs (1)
290_backgroundFormatOperation = Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, BackgroundUpdateCallback, this);
src\Framework\System\Windows\Application.cs (1)
2761Dispatcher.Run();
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\Controls\InkCanvas.cs (1)
3132internal override Dispatcher Dispatcher
src\Framework\System\Windows\Controls\InkPresenter.cs (1)
433internal override Dispatcher Dispatcher
src\Framework\System\Windows\Controls\Primitives\LayoutInformation.cs (1)
60public static UIElement GetLayoutExceptionElement(Dispatcher dispatcher)
src\Framework\System\Windows\Data\Binding.cs (1)
230if (System.Windows.Threading.Dispatcher.CurrentDispatcher == null)
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1994internal Dispatcher Dispatcher
src\Framework\System\Windows\Documents\Adorner.cs (1)
61Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(CreateFlowDirectionBinding), this);
src\Framework\System\Windows\Documents\AdornerLayer.cs (2)
145internal AdornerLayer() : this(Dispatcher.CurrentDispatcher) 158internal AdornerLayer(Dispatcher context)
src\Framework\System\Windows\Documents\PageContent.cs (1)
146Dispatcher dispatcher = this.Dispatcher;
src\Framework\System\Windows\Documents\PageContentAsyncResult.cs (2)
57internal PageContentAsyncResult(AsyncCallback callback, object state, Dispatcher dispatcher, Uri baseUri, Uri source, FixedPage child) 276private Dispatcher _dispatcher;
src\Framework\System\Windows\Documents\Speller.cs (1)
541Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new DispatcherOperationCallback(OnIdle), null);
src\Framework\System\Windows\Documents\TextContainer.cs (1)
3495private Dispatcher Dispatcher
src\Framework\System\windows\Documents\TextEditor.cs (2)
1639Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(InitTextStore), null); 2021internal Dispatcher _dispatcher;
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 (16)
109_dispatcher = new WeakReference<Dispatcher>(Dispatcher.CurrentDispatcher); 583/// thread by invoking it with help from the cached <see cref="Dispatcher"/> 799/// Executes the specified delegate asynchronously on the UI thread using the <see cref="Dispatcher"/> 806/// which is pushed onto the <see cref="Dispatcher"/> queue.</param> 807/// <param name="priority">The priority, relative to the other pending operations in the <see cref="Dispatcher"/> 811/// An object, which is returned immediately after <see cref="Dispatcher.BeginInvoke"/> is called, 814/// If the current thread is already the same thread as the one on which the cached <see cref="Dispatcher"/> 818/// Thrown when the cached <see cref="Dispatcher"/> can not be obtained 821/// Thrown by <see cref="Dispatcher.BeginInvoke"/> when <paramref name="method"/> is <code>null 831/// unnecessary because <see cref="Dispatcher.BeginInvoke"/> is really what is used to 832/// orchestrate the execution of <paramref name="method"/>, and in turn, <see cref="Dispatcher.BeginInvoke"/> 837Dispatcher dispatcher = null; 940/// <see cref="Dispatcher"/> associated with the thread on which this instance 941/// of <see cref="WinRTSpellerInterop"/> was created. This <see cref="Dispatcher"/> 945private readonly WeakReference<Dispatcher> _dispatcher;
src\Framework\System\Windows\FrameworkContextData.cs (1)
14public static FrameworkContextData From(Dispatcher context)
src\Framework\System\Windows\Interop\HwndHost.cs (2)
1425public WeakEventDispatcherShutdown(HwndHost hwndHost, Dispatcher that): base(hwndHost) 1452private Dispatcher _that;
src\Framework\System\Windows\Markup\XamlReader.cs (2)
467Dispatcher.CurrentDispatcher.BeginInvoke(priority, callback, this); 598Dispatcher.CurrentDispatcher.BeginInvoke(
src\Framework\System\Windows\Navigation\NavigationService.cs (9)
1216Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(disposeItem.Dispatch), null); 2884RequestState requestState = new RequestState(_request, source, navState, Dispatcher.CurrentDispatcher); 3019Dispatcher callbackDispatcher = ((RequestState)ar.AsyncState).CallbackDispatcher; 3021if (Dispatcher.CurrentDispatcher != callbackDispatcher) 3161BindStream bindStream = new BindStream(s, contentLength, cleanSource, (IContentContainer)this, Dispatcher.CurrentDispatcher); 4479internal RequestState(WebRequest request, Uri source, Object navState, Dispatcher callbackDispatcher) 4511internal Dispatcher CallbackDispatcher 4522private Dispatcher _callbackDispatcher; 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 (2)
51Dispatcher _dispatcher; 114_dispatcher = Dispatcher.CurrentDispatcher;
src\Framework\System\Windows\SystemResources.cs (5)
1374Dispatcher dispatcher = Hwnd.Dispatcher; 1396Dispatcher dispatcher = isSysColorsOrSettingsChange ? null : Dispatcher.FromThread(System.Threading.Thread.CurrentThread); 1743Dispatcher d = Dispatcher.CurrentDispatcher;
src\Framework\System\Windows\Window.cs (3)
3756if (Application.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread) 4694if (Application.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread) 5843Dispatcher.PushFrame(_dispatcherFrame);
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (1)
706Dispatcher.BeginInvoke(() =>
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
1663Dispatcher.BeginInvoke(new Action(() =>
System.Activities.Presentation (26)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UIThreadDispatcher.cs (2)
22private Dispatcher uiThreadDispatcher; 28this.uiThreadDispatcher = Dispatcher.CurrentDispatcher;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (5)
347Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new MethodInvoker(SelectPropertyByPathOnIdle)); 355Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new MethodInvoker(SelectPropertyByPathOnIdle)); 485Dispatcher.BeginInvoke(DispatcherPriority.Render, new UpdateSelectedPropertyInvoker(UpdateSelectedProperty), _lastNotifiedSelection); 510Dispatcher.BeginInvoke(DispatcherPriority.Background, new MethodInvoker(OnSelectionChangedIdle)); 622Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new MethodInvoker(OnParentChangedIdle));
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 (2)
16private Dispatcher dispatcher; 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 (82)
Base\MS\Internal\ShutDownListener.cs (4)
92Dispatcher dispatcher = Dispatcher.CurrentDispatcher; 129Dispatcher dispatcher = (Dispatcher)_dispatcherWR.Target;
Base\MS\Internal\Threading\ExceptionWrapper.cs (2)
87Dispatcher.ShutdownCallback shutdownCallback = callback as Dispatcher.ShutdownCallback;
Base\System\Windows\Data\DataSourceProvider.cs (3)
47_dispatcher = Dispatcher.CurrentDispatcher; 221protected Dispatcher Dispatcher 442private Dispatcher _dispatcher;
Base\System\Windows\DependencyObject.cs (2)
2488Dispatcher dispatcher = d.Dispatcher; 2491Dispatcher sourceDispatcher = newSources[i].DependencyObject.Dispatcher;
Base\System\Windows\SplashScreen.cs (3)
49private Dispatcher _dispatcher; 121Dispatcher.CurrentDispatcher.BeginInvoke( 129_dispatcher = Dispatcher.CurrentDispatcher;
Base\System\Windows\Threading\Dispatcher.cs (17)
58public static Dispatcher CurrentDispatcher 63Dispatcher currentDispatcher = FromThread(Thread.CurrentThread);; 84public static Dispatcher FromThread(Thread thread) 88Dispatcher dispatcher = null; 99dispatcher = _possibleDispatcher.Target as Dispatcher; 115Dispatcher d = _dispatchers[i].Target as Dispatcher; 352Dispatcher dispatcher = Dispatcher.CurrentDispatcher; 389Dispatcher dispatcher = Dispatcher.CurrentDispatcher; 417Dispatcher currentDispatcher = FromThread(Thread.CurrentThread);; 3017Dispatcher d = (Dispatcher)source; 3079Dispatcher dispatcher = (Dispatcher)source; 3151private static Dispatcher _tlsDispatcher; // use TLS for ownership only
Base\System\Windows\Threading\DispatcherEventArgs.cs (3)
15public Dispatcher Dispatcher 23internal DispatcherEventArgs(Dispatcher dispatcher) 28private Dispatcher _dispatcher;
Base\System\Windows\Threading\DispatcherExceptionEventArgs.cs (1)
34internal DispatcherUnhandledExceptionEventArgs(Dispatcher dispatcher)
Base\System\Windows\Threading\DispatcherExceptionFilterEventArgs.cs (1)
38internal DispatcherUnhandledExceptionFilterEventArgs(Dispatcher dispatcher)
Base\System\Windows\Threading\DispatcherFrame.cs (1)
75Dispatcher dispatcher = Dispatcher;
Base\System\Windows\Threading\DispatcherHookEventArgs.cs (1)
22public Dispatcher Dispatcher
Base\System\Windows\Threading\DispatcherHooks.cs (6)
243internal void RaiseDispatcherInactive(Dispatcher dispatcher) 257internal void RaiseOperationPosted(Dispatcher dispatcher, DispatcherOperation operation) 272internal void RaiseOperationStarted(Dispatcher dispatcher, DispatcherOperation operation) 287internal void RaiseOperationCompleted(Dispatcher dispatcher, DispatcherOperation operation) 302internal void RaiseOperationPriorityChanged(Dispatcher dispatcher, DispatcherOperation operation) 317internal void RaiseOperationAborted(Dispatcher dispatcher, DispatcherOperation operation)
Base\System\Windows\Threading\DispatcherObject.cs (9)
28public Dispatcher Dispatcher 56private static Dispatcher EnsureSentinelDispatcher() 62Dispatcher sentinelDispatcher = new Dispatcher(isSentinel:true); 63Interlocked.CompareExchange<Dispatcher>(ref _sentinelDispatcher, sentinelDispatcher, null); 87Dispatcher dispatcher = _dispatcher; 113Dispatcher dispatcher = _dispatcher; 128_dispatcher = Dispatcher.CurrentDispatcher; 131private Dispatcher _dispatcher; 132private static Dispatcher _sentinelDispatcher;
Base\System\Windows\Threading\DispatcherOperation.cs (9)
36Dispatcher dispatcher, 63Dispatcher dispatcher, 83Dispatcher dispatcher, 101Dispatcher dispatcher, 118public Dispatcher Dispatcher 139Dispatcher.ValidatePriority(value, "value"); 229Dispatcher.PushFrame(frame); 744private readonly Dispatcher _dispatcher; 774Dispatcher dispatcher,
Base\System\Windows\Threading\DispatcherPriorityAwaitable.cs (2)
20internal DispatcherPriorityAwaitable(Dispatcher dispatcher, DispatcherPriority priority) 35private readonly Dispatcher _dispatcher;
Base\System\Windows\Threading\DispatcherPriorityAwaiter.cs (2)
23internal DispatcherPriorityAwaiter(Dispatcher dispatcher, DispatcherPriority priority) 63private readonly Dispatcher _dispatcher;
Base\System\Windows\Threading\DispatcherProcessingDisabled.cs (1)
87internal Dispatcher _dispatcher; // set by Dispatcher
Base\System\Windows\Threading\DispatcherSynchronizationContext.cs (5)
21public DispatcherSynchronizationContext(): this(Dispatcher.CurrentDispatcher, DispatcherPriority.Normal) 29public DispatcherSynchronizationContext(Dispatcher dispatcher): this(dispatcher, DispatcherPriority.Normal) 37public DispatcherSynchronizationContext(Dispatcher dispatcher, DispatcherPriority priority) 44Dispatcher.ValidatePriority(priority, "priority"); 139internal Dispatcher _dispatcher;
Base\System\Windows\Threading\DispatcherTimer.cs (7)
33Initialize(Dispatcher.CurrentDispatcher, priority, TimeSpan.FromMilliseconds(0)); 46public DispatcherTimer(DispatcherPriority priority, Dispatcher dispatcher) // NOTE: should be Priority 73public DispatcherTimer(TimeSpan interval, DispatcherPriority priority, EventHandler callback, Dispatcher dispatcher) // NOTE: should be Priority 106public Dispatcher Dispatcher 247private void Initialize(Dispatcher dispatcher, DispatcherPriority priority, TimeSpan interval) 250Dispatcher.ValidatePriority(priority, "priority"); 333private Dispatcher _dispatcher;
Shared\MS\Internal\ReaderWriterLockSlimWrapper.cs (1)
275Dispatcher.FromThread(Thread.CurrentThread)?.DisableProcessing();
Shared\MS\Win32\HwndSubclass.cs (2)
373Dispatcher dispatcher = Dispatcher.FromThread(Thread.CurrentThread);