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