1 instantiation of MediaContext
PresentationCore (1)
System\Windows\Media\MediaContext.cs (1)
1395cm = new MediaContext(dispatcher);
125 references to MediaContext
PresentationCore (125)
MS\Internal\CoreAppContextSwitches.cs (2)
199/// See <see cref="System.Windows.Media.MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/> for details 242/// See <see cref="System.Windows.Media.MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/> for details
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
592return MediaContext.CurrentMediaContext.IsConnected; 2472/// See <see cref="MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/> for
System\Windows\Input\ManipulationLogic.cs (1)
271return MediaContext.CurrentTicks;
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (6)
563MediaContext.From(renderingThread.ThreadDispatcher).RenderComplete += _onDRThreadRenderComplete; 638MediaContext.From(drDispatcher).RenderComplete -= _onDRThreadRenderComplete; 700MediaContext.From(_applicationDispatcher).RenderComplete -= _onRenderComplete; 733MediaContext.From(_applicationDispatcher).RenderComplete += _onRenderComplete; 1157MediaContext.From(_applicationDispatcher).RenderComplete -= _onRenderComplete; 1180MediaContext.From(drDispatcher).RenderComplete -= _onDRThreadRenderComplete;
System\Windows\InterOp\D3DImage.cs (4)
569MediaContext mediaContext = MediaContext.From(Dispatcher); 583MediaContext mediaContext = MediaContext.From(Dispatcher);
System\Windows\InterOp\HwndTarget.cs (16)
178/// using <see cref="MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/>, which in turn factors in (a) 186private bool _displayDevicesAvailable = MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable; 290MediaContext.RegisterICompositionTarget(Dispatcher, this); 641DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 707MediaContext.UnregisterICompositionTarget(Dispatcher, this); 1007bool displayDevicesAvailable = _displayDevicesAvailable || MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable; 1064if (_displayDevicesAvailable || MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable) 1558DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 1589MediaContext mctx = MediaContext.From(Dispatcher); 1707DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 1808DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 2132MediaContext mctx = MediaContext.From(Dispatcher); 2387MediaContext mctx = MediaContext.From(Dispatcher);
System\Windows\LayoutManager.cs (1)
124MediaContext.From(Dispatcher).BeginInvokeOnRender(_updateCallback, this);
System\Windows\Media\Animation\Animatable.cs (3)
355MediaContext mediaContext = MediaContext.From(Dispatcher); 365mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(UpdateResource);
System\Windows\Media\Animation\AnimationClockResource.cs (3)
79MediaContext mediaContext = MediaContext.From(dispatcher); 89mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(UpdateResourceFromMediaContext);
System\Windows\Media\Animation\Clock.cs (1)
3585TimeManager timeManager = MediaContext.From(Dispatcher).TimeManager;
System\Windows\Media\Animation\IndependentAnimationStorage.cs (5)
19protected MediaContext.ResourcesUpdatedHandler _updateResourceHandler; 79_updateResourceHandler = new MediaContext.ResourcesUpdatedHandler(UpdateResource); 125MediaContext mediaContext = MediaContext.From(d.Dispatcher); 225MediaContext.CurrentMediaContext.ResourcesUpdated += _updateResourceHandler;
System\Windows\Media\Animation\TimeManager.cs (2)
111if (MediaContext.IsClockSupported) 113_systemClock = (IClock)MediaContext.From(Dispatcher);
System\Windows\Media\BitmapCacheBrush.cs (3)
93MediaContext mediaContext = MediaContext.From(Dispatcher); 104mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(cyclicBrush.RenderForCyclicBrush);
System\Windows\Media\CompositionTarget.cs (9)
187MediaContext.From(Dispatcher).PostRender(); 417MediaContext mctx = MediaContext.From(Dispatcher); 487DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 546MediaContext.From(Dispatcher).VerifyWriteAccess(); 605MediaContext mc = MediaContext.From(Dispatcher.CurrentDispatcher); 613MediaContext mc = MediaContext.From(Dispatcher.CurrentDispatcher);
System\Windows\Media\DrawingVisual.cs (2)
181MediaContext mediaContext = MediaContext.From(Dispatcher);
System\Windows\Media\Effects\PixelShader.cs (4)
72MediaContext mediaContext = MediaContext.CurrentMediaContext; 77MediaContext mediaContext = MediaContext.CurrentMediaContext;
System\Windows\Media\HostVisual.cs (1)
277Debug.Assert(_target.OutOfBandChannel == MediaContext.CurrentMediaContext.OutOfBandChannel);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
117MediaContext mctx = MediaContext.CurrentMediaContext;
System\Windows\Media\Imaging\WriteableBitmap.cs (4)
1276MediaContext mediaContext = MediaContext.From(Dispatcher); 1289MediaContext mediaContext = MediaContext.From(Dispatcher);
System\Windows\Media\MediaContext.cs (6)
1389internal static MediaContext From(Dispatcher dispatcher) 1392MediaContext cm = (MediaContext)dispatcher.Reserved0; 1405internal static MediaContext CurrentMediaContext 1491MediaContext current = From(dispatcher); 1532MediaContext.From(dispatcher).UnregisterICompositionTargetInternal(iv);
System\Windows\Media\MediaContextNotificationWindow.cs (2)
62internal MediaContextNotificationWindow(MediaContext ownerMediaContext) 233private MediaContext _ownerMediaContext;
System\Windows\Media\MediaSystem.cs (4)
46public static bool Startup(MediaContext mc) 92internal static bool ConnectChannels(MediaContext mc) 132internal static void Shutdown(MediaContext mc) 188foreach (MediaContext mc in _mediaContexts)
System\Windows\Media\RenderCapability.cs (16)
34MediaContext mediaContext = MediaContext.CurrentMediaContext; 63MediaContext mediaContext = MediaContext.CurrentMediaContext; 96MediaContext mediaContext = MediaContext.CurrentMediaContext; 111MediaContext mediaContext = MediaContext.CurrentMediaContext; 129MediaContext mediaContext = MediaContext.CurrentMediaContext; 148MediaContext mediaContext = MediaContext.CurrentMediaContext; 161MediaContext mediaContext = MediaContext.CurrentMediaContext; 172MediaContext mediaContext = MediaContext.CurrentMediaContext;
System\Windows\Media\Renderer.cs (4)
129MediaContext mediaContext = MediaContext.CurrentMediaContext; 178MediaContext mediaContext = MediaContext.CurrentMediaContext;
System\Windows\Media\Visual.cs (5)
1010MediaContext.From(this.Dispatcher).VerifyWriteAccess(); 1042MediaContext mediaContext = MediaContext.From(Dispatcher); 5224MediaContext mctx = MediaContext.From(e.Dispatcher);
System\Windows\Media\VisualBrush.cs (3)
94MediaContext mediaContext = MediaContext.From(Dispatcher); 105mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(cyclicBrush.RenderForCyclicBrush);
System\Windows\Media\VisualTarget.cs (3)
42MediaContext.RegisterICompositionTarget(Dispatcher, this); 68MediaContext.UnregisterICompositionTarget(Dispatcher, this); 173MediaContext.UnregisterICompositionTarget(Dispatcher, this);
System\Windows\Media3D\ModelUIElement3D.cs (1)
59(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; });
System\Windows\Media3D\ModelVisual3D.cs (1)
137(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; });
System\Windows\Media3D\Viewport3DVisual.cs (2)
210(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; }); 256(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; });
System\Windows\Media3D\Visual3D.cs (2)
157(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; }); 936MediaContext.From(this.Dispatcher).VerifyWriteAccess();
System\Windows\UIElement.cs (4)
1332MediaContext mediaContext = MediaContext.From(Dispatcher); 3235MediaContext mediaContext = MediaContext.From(Dispatcher);
System\Windows\UIElement3D.cs (1)
127MediaContext.From(Dispatcher).BeginInvokeOnRender(CallRenderCallback, this);