1 instantiation of MediaContext
PresentationCore (1)
System\Windows\Media\MediaContext.cs (1)
1396
cm = 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)
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;
289
MediaContext
.RegisterICompositionTarget(Dispatcher, this);
632
DUCE.ChannelSet channelSet =
MediaContext
.From(Dispatcher).GetChannels();
698
MediaContext
.UnregisterICompositionTarget(Dispatcher, this);
998
bool displayDevicesAvailable = _displayDevicesAvailable ||
MediaContext
.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable;
1055
if (_displayDevicesAvailable ||
MediaContext
.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable)
1549
DUCE.ChannelSet channelSet =
MediaContext
.From(Dispatcher).GetChannels();
1580
MediaContext
mctx =
MediaContext
.From(Dispatcher);
1698
DUCE.ChannelSet channelSet =
MediaContext
.From(Dispatcher).GetChannels();
1799
DUCE.ChannelSet channelSet =
MediaContext
.From(Dispatcher).GetChannels();
2123
MediaContext
mctx =
MediaContext
.From(Dispatcher);
2378
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)
1273
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
1286
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
System\Windows\Media\MediaContext.cs (6)
1390
internal static
MediaContext
From(Dispatcher dispatcher)
1393
MediaContext
cm = (
MediaContext
)dispatcher.Reserved0;
1406
internal static
MediaContext
CurrentMediaContext
1492
MediaContext
current = From(dispatcher);
1533
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)
1013
MediaContext
.From(this.Dispatcher).VerifyWriteAccess();
1045
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
5230
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)
212
(ValidateValueCallback) delegate { return
MediaContext
.CurrentMediaContext.WriteAccessEnabled; });
258
(ValidateValueCallback) delegate { return
MediaContext
.CurrentMediaContext.WriteAccessEnabled; });
System\Windows\Media3D\Visual3D.cs (2)
158
(ValidateValueCallback) delegate { return
MediaContext
.CurrentMediaContext.WriteAccessEnabled; });
938
MediaContext
.From(this.Dispatcher).VerifyWriteAccess();
System\Windows\UIElement.cs (4)
1332
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
3239
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
System\Windows\UIElement3D.cs (1)
127
MediaContext
.From(Dispatcher).BeginInvokeOnRender(CallRenderCallback, this);