1 instantiation of MediaContext
PresentationCore (1)
Core\CSharp\System\Windows\Media\MediaContext.cs (1)
1426cm = new MediaContext(dispatcher);
117 references to MediaContext
PresentationCore (117)
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (1)
295return MediaContext.CurrentTicks;
Core\CSharp\System\Windows\Interop\D3DImage.cs (4)
626MediaContext mediaContext = MediaContext.From(Dispatcher); 640MediaContext mediaContext = MediaContext.From(Dispatcher);
Core\CSharp\System\Windows\Interop\HwndTarget.cs (16)
199/// using <see cref="MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/>, which in turn factors in (a) 207private bool _displayDevicesAvailable = MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable; 322MediaContext.RegisterICompositionTarget(Dispatcher, this); 686DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 766MediaContext.UnregisterICompositionTarget(Dispatcher, this); 1091bool displayDevicesAvailable = _displayDevicesAvailable || MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable; 1148if (_displayDevicesAvailable || MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable) 1700DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 1736MediaContext mctx = MediaContext.From(Dispatcher); 1859DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 1969DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 2309MediaContext mctx = MediaContext.From(Dispatcher); 2568MediaContext mctx = MediaContext.From(Dispatcher);
Core\CSharp\System\Windows\LayoutManager.cs (1)
124MediaContext.From(Dispatcher).BeginInvokeOnRender(_updateCallback, this);
Core\CSharp\System\Windows\Media\Animation\Animatable.cs (3)
357MediaContext mediaContext = MediaContext.From(Dispatcher); 368mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(UpdateResource);
Core\CSharp\System\Windows\Media\Animation\AnimationClockResource.cs (3)
81MediaContext mediaContext = MediaContext.From(dispatcher); 91mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(UpdateResourceFromMediaContext);
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
3593TimeManager timeManager = MediaContext.From(Dispatcher).TimeManager;
Core\CSharp\System\Windows\Media\Animation\IndependentAnimationStorage.cs (5)
16protected MediaContext.ResourcesUpdatedHandler _updateResourceHandler; 76_updateResourceHandler = new MediaContext.ResourcesUpdatedHandler(UpdateResource); 122MediaContext mediaContext = MediaContext.From(d.Dispatcher); 222MediaContext.CurrentMediaContext.ResourcesUpdated += _updateResourceHandler;
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (2)
114if (MediaContext.IsClockSupported) 116_systemClock = (IClock)MediaContext.From(Dispatcher);
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (3)
95MediaContext mediaContext = MediaContext.From(Dispatcher); 106mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(cyclicBrush.RenderForCyclicBrush);
Core\CSharp\System\Windows\Media\CompositionTarget.cs (9)
206MediaContext.From(Dispatcher).PostRender(); 444MediaContext mctx = MediaContext.From(Dispatcher); 519DUCE.ChannelSet channelSet = MediaContext.From(Dispatcher).GetChannels(); 584MediaContext.From(Dispatcher).VerifyWriteAccess(); 643MediaContext mc = MediaContext.From(Dispatcher.CurrentDispatcher); 651MediaContext mc = MediaContext.From(Dispatcher.CurrentDispatcher);
Core\CSharp\System\Windows\Media\DrawingVisual.cs (2)
190MediaContext mediaContext = MediaContext.From(Dispatcher);
Core\CSharp\System\Windows\Media\Effects\PixelShader.cs (4)
71MediaContext mediaContext = MediaContext.CurrentMediaContext; 76MediaContext mediaContext = MediaContext.CurrentMediaContext;
Core\CSharp\System\Windows\Media\HostVisual.cs (1)
273Debug.Assert(_target.OutOfBandChannel == MediaContext.CurrentMediaContext.OutOfBandChannel);
Core\CSharp\System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
130MediaContext mctx = MediaContext.CurrentMediaContext;
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (4)
1468MediaContext mediaContext = MediaContext.From(Dispatcher); 1481MediaContext mediaContext = MediaContext.From(Dispatcher);
Core\CSharp\System\Windows\Media\MediaContext.cs (6)
1420internal static MediaContext From(Dispatcher dispatcher) 1423MediaContext cm = (MediaContext)dispatcher.Reserved0; 1436internal static MediaContext CurrentMediaContext 1530MediaContext current = From(dispatcher); 1571MediaContext.From(dispatcher).UnregisterICompositionTargetInternal(iv);
Core\CSharp\System\Windows\Media\MediaContextNotificationWindow.cs (2)
76internal MediaContextNotificationWindow(MediaContext ownerMediaContext) 296private MediaContext _ownerMediaContext;
Core\CSharp\System\Windows\Media\MediaSystem.cs (4)
54public static bool Startup(MediaContext mc) 96internal static bool ConnectChannels(MediaContext mc) 162internal static void Shutdown(MediaContext mc) 204foreach (MediaContext mc in _mediaContexts)
Core\CSharp\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;
Core\CSharp\System\Windows\Media\Renderer.cs (4)
140MediaContext mediaContext = MediaContext.CurrentMediaContext; 190MediaContext mediaContext = MediaContext.CurrentMediaContext;
Core\CSharp\System\Windows\Media\Visual.cs (5)
1020MediaContext.From(this.Dispatcher).VerifyWriteAccess(); 1052MediaContext mediaContext = MediaContext.From(Dispatcher); 5271MediaContext mctx = MediaContext.From(e.Dispatcher);
Core\CSharp\System\Windows\Media\VisualBrush.cs (3)
96MediaContext mediaContext = MediaContext.From(Dispatcher); 107mediaContext.ResourcesUpdated += new MediaContext.ResourcesUpdatedHandler(cyclicBrush.RenderForCyclicBrush);
Core\CSharp\System\Windows\Media\VisualTarget.cs (3)
49MediaContext.RegisterICompositionTarget(Dispatcher, this); 75MediaContext.UnregisterICompositionTarget(Dispatcher, this); 185MediaContext.UnregisterICompositionTarget(Dispatcher, this);
Core\CSharp\System\Windows\Media3D\ModelUIElement3D.cs (1)
63(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; });
Core\CSharp\System\Windows\Media3D\ModelVisual3D.cs (1)
144(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; });
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (2)
214(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; }); 260(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; });
Core\CSharp\System\Windows\Media3D\Visual3D.cs (2)
166(ValidateValueCallback) delegate { return MediaContext.CurrentMediaContext.WriteAccessEnabled; }); 952MediaContext.From(this.Dispatcher).VerifyWriteAccess();
Core\CSharp\System\Windows\UIElement.cs (4)
1346MediaContext mediaContext = MediaContext.From(Dispatcher); 3269MediaContext mediaContext = MediaContext.From(Dispatcher);
Core\CSharp\System\Windows\UIElement3D.cs (1)
134MediaContext.From(Dispatcher).BeginInvokeOnRender(CallRenderCallback, this);
Graphics\include\exports.cs (2)
687return MediaContext.CurrentMediaContext.IsConnected; 2771/// See <see cref="MediaContext.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/> for