1 instantiation of MediaContext
PresentationCore (1)
System\Windows\Media\MediaContext.cs (1)
1374cm = new MediaContext(dispatcher);
125 references to MediaContext
PresentationCore (125)
MS\Internal\CoreAppContextSwitches.cs (2)
191/// See <see cref="System.Windows.Media.MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/> for details 234/// See <see cref="System.Windows.Media.MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/> for details
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
575return MediaContext.CurrentMediaContext.IsConnected; 2455/// See <see cref="MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/> for
System\Windows\Input\ManipulationLogic.cs (1)
264return MediaContext.CurrentTicks;
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (6)
549MediaContext.From(renderingThread.ThreadDispatcher).RenderComplete += _onDRThreadRenderComplete; 624MediaContext.From(drDispatcher).RenderComplete -= _onDRThreadRenderComplete; 686MediaContext.From(_applicationDispatcher).RenderComplete -= _onRenderComplete; 719MediaContext.From(_applicationDispatcher).RenderComplete += _onRenderComplete; 1143MediaContext.From(_applicationDispatcher).RenderComplete -= _onRenderComplete; 1166MediaContext.From(drDispatcher).RenderComplete -= _onDRThreadRenderComplete;
System\Windows\InterOp\D3DImage.cs (4)
557MediaContext mediaContext = MediaContext.From(Dispatcher); 571MediaContext mediaContext = MediaContext.From(Dispatcher);
System\Windows\InterOp\HwndTarget.cs (16)
165/// using <see cref="MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/>, which in turn factors in (a) 173private bool _displayDevicesAvailable = MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable; 277MediaContext.RegisterICompositionTarget(Dispatcher, this); 628DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 694MediaContext.UnregisterICompositionTarget(Dispatcher, this); 994bool displayDevicesAvailable = _displayDevicesAvailable || MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable; 1051if (_displayDevicesAvailable || MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable) 1545DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 1576MediaContext mctx = MediaContext.From(Dispatcher); 1694DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 1795DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 2119MediaContext mctx = MediaContext.From(Dispatcher); 2374MediaContext mctx = MediaContext.From(Dispatcher);
System\Windows\LayoutManager.cs (1)
108MediaContext.From(Dispatcher).BeginInvokeOnRender(_updateCallback, this);
System\Windows\Media\Animation\Animatable.cs (3)
348MediaContext mediaContext = MediaContext.From(Dispatcher); 358mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(UpdateResource);
System\Windows\Media\Animation\AnimationClockResource.cs (3)
74MediaContext mediaContext = MediaContext.From(dispatcher); 84mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(UpdateResourceFromMediaContext);
System\Windows\Media\Animation\Clock.cs (1)
3572TimeManager timeManager = MediaContext.From(Dispatcher).TimeManager;
System\Windows\Media\Animation\IndependentAnimationStorage.cs (5)
15protected MediaContext.ResourcesUpdatedHandler _updateResourceHandler; 75_updateResourceHandler = new MediaContext.ResourcesUpdatedHandler(UpdateResource); 121MediaContext mediaContext = MediaContext.From(d.Dispatcher); 221MediaContext.CurrentMediaContext.ResourcesUpdated += _updateResourceHandler;
System\Windows\Media\Animation\TimeManager.cs (2)
97if (MediaContext.IsClockSupported) 99_systemClock = (IClock)MediaContext.From(Dispatcher);
System\Windows\Media\BitmapCacheBrush.cs (3)
85MediaContext mediaContext = MediaContext.From(Dispatcher); 96mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(cyclicBrush.RenderForCyclicBrush);
System\Windows\Media\CompositionTarget.cs (9)
165MediaContext.From(Dispatcher).PostRender(); 395MediaContext mctx = MediaContext.From(Dispatcher); 465DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 524MediaContext.From(Dispatcher).VerifyWriteAccess(); 583MediaContext mc = MediaContext.From(Dispatcher.CurrentDispatcher); 591MediaContext mc = MediaContext.From(Dispatcher.CurrentDispatcher);
System\Windows\Media\DrawingVisual.cs (2)
171MediaContext mediaContext = MediaContext.From(Dispatcher);
System\Windows\Media\Effects\PixelShader.cs (4)
50MediaContext mediaContext = MediaContext.CurrentMediaContext; 55MediaContext mediaContext = MediaContext.CurrentMediaContext;
System\Windows\Media\HostVisual.cs (1)
261Debug.Assert(_target.OutOfBandChannel == MediaContext.CurrentMediaContext.OutOfBandChannel);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
104MediaContext mctx = MediaContext.CurrentMediaContext;
System\Windows\Media\Imaging\WriteableBitmap.cs (4)
1259MediaContext mediaContext = MediaContext.From(Dispatcher); 1272MediaContext mediaContext = MediaContext.From(Dispatcher);
System\Windows\Media\MediaContext.cs (6)
1368internal static MediaContext From(Dispatcher dispatcher) 1371MediaContext cm = (MediaContext)dispatcher.Reserved0; 1384internal static MediaContext CurrentMediaContext 1470MediaContext current = From(dispatcher); 1511MediaContext.From(dispatcher).UnregisterICompositionTargetInternal(iv);
System\Windows\Media\MediaContextNotificationWindow.cs (2)
45internal MediaContextNotificationWindow(MediaContext ownerMediaContext) 216private MediaContext _ownerMediaContext;
System\Windows\Media\MediaSystem.cs (4)
33public static bool Startup(MediaContext mc) 79internal static bool ConnectChannels(MediaContext mc) 119internal static void Shutdown(MediaContext mc) 175foreach (MediaContext mc in _mediaContexts)
System\Windows\Media\RenderCapability.cs (16)
31MediaContext mediaContext = MediaContext.CurrentMediaContext; 60MediaContext mediaContext = MediaContext.CurrentMediaContext; 93MediaContext mediaContext = MediaContext.CurrentMediaContext; 108MediaContext mediaContext = MediaContext.CurrentMediaContext; 126MediaContext mediaContext = MediaContext.CurrentMediaContext; 145MediaContext mediaContext = MediaContext.CurrentMediaContext; 158MediaContext mediaContext = MediaContext.CurrentMediaContext; 169MediaContext mediaContext = MediaContext.CurrentMediaContext;
System\Windows\Media\Renderer.cs (4)
117MediaContext mediaContext = MediaContext.CurrentMediaContext; 166MediaContext mediaContext = MediaContext.CurrentMediaContext;
System\Windows\Media\Visual.cs (5)
994MediaContext.From(this.Dispatcher).VerifyWriteAccess(); 1026MediaContext mediaContext = MediaContext.From(Dispatcher); 5208MediaContext mctx = MediaContext.From(e.Dispatcher);
System\Windows\Media\VisualBrush.cs (3)
85MediaContext mediaContext = MediaContext.From(Dispatcher); 96mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(cyclicBrush.RenderForCyclicBrush);
System\Windows\Media\VisualTarget.cs (3)
37MediaContext.RegisterICompositionTarget(Dispatcher, this); 63MediaContext.UnregisterICompositionTarget(Dispatcher, this); 168MediaContext.UnregisterICompositionTarget(Dispatcher, this);
System\Windows\Media3D\ModelUIElement3D.cs (1)
49(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; });
System\Windows\Media3D\ModelVisual3D.cs (1)
121(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; });
System\Windows\Media3D\Viewport3DVisual.cs (2)
199(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; }); 245(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; });
System\Windows\Media3D\Visual3D.cs (2)
149(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; }); 928MediaContext.From(this.Dispatcher).VerifyWriteAccess();
System\Windows\UIElement.cs (4)
1327MediaContext mediaContext = MediaContext.From(Dispatcher); 3230MediaContext mediaContext = MediaContext.From(Dispatcher);
System\Windows\UIElement3D.cs (1)
112MediaContext.From(Dispatcher).BeginInvokeOnRender(CallRenderCallback, this);