1 instantiation of MediaContext
PresentationCore (1)
System\Windows\Media\MediaContext.cs (1)
1370
cm = new
MediaContext
(dispatcher);
125 references to MediaContext
PresentationCore (125)
MS\Internal\CoreAppContextSwitches.cs (2)
190
/// See <see cref="System.Windows.Media.
MediaContext
.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/> for details
233
/// See <see cref="System.Windows.Media.
MediaContext
.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/> for details
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
574
return
MediaContext
.CurrentMediaContext.IsConnected;
2454
/// See <see cref="
MediaContext
.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/> for
System\Windows\Input\ManipulationLogic.cs (1)
265
return
MediaContext
.CurrentTicks;
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (6)
548
MediaContext
.From(renderingThread.ThreadDispatcher).RenderComplete += _onDRThreadRenderComplete;
619
MediaContext
.From(drDispatcher).RenderComplete -= _onDRThreadRenderComplete;
681
MediaContext
.From(_applicationDispatcher).RenderComplete -= _onRenderComplete;
714
MediaContext
.From(_applicationDispatcher).RenderComplete += _onRenderComplete;
1128
MediaContext
.From(_applicationDispatcher).RenderComplete -= _onRenderComplete;
1149
MediaContext
.From(drDispatcher).RenderComplete -= _onDRThreadRenderComplete;
System\Windows\InterOp\D3DImage.cs (4)
556
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
570
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
System\Windows\InterOp\HwndTarget.cs (16)
162
/// using <see cref="
MediaContext
.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable"/>, which in turn factors in (a)
170
private bool _displayDevicesAvailable =
MediaContext
.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable;
274
MediaContext
.RegisterICompositionTarget(Dispatcher, this);
625
DUCE.ChannelSet channelSet =
MediaContext
.From(Dispatcher).GetChannels();
691
MediaContext
.UnregisterICompositionTarget(Dispatcher, this);
991
bool displayDevicesAvailable = _displayDevicesAvailable ||
MediaContext
.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable;
1048
if (_displayDevicesAvailable ||
MediaContext
.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable)
1536
DUCE.ChannelSet channelSet =
MediaContext
.From(Dispatcher).GetChannels();
1567
MediaContext
mctx =
MediaContext
.From(Dispatcher);
1685
DUCE.ChannelSet channelSet =
MediaContext
.From(Dispatcher).GetChannels();
1786
DUCE.ChannelSet channelSet =
MediaContext
.From(Dispatcher).GetChannels();
2110
MediaContext
mctx =
MediaContext
.From(Dispatcher);
2367
MediaContext
mctx =
MediaContext
.From(Dispatcher);
System\Windows\LayoutManager.cs (1)
107
MediaContext
.From(Dispatcher).BeginInvokeOnRender(_updateCallback, this);
System\Windows\Media\Animation\Animatable.cs (3)
330
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
340
mediaContext.ResourcesUpdated += new
MediaContext
.ResourcesUpdatedHandler(UpdateResource);
System\Windows\Media\Animation\AnimationClockResource.cs (3)
73
MediaContext
mediaContext =
MediaContext
.From(dispatcher);
83
mediaContext.ResourcesUpdated += new
MediaContext
.ResourcesUpdatedHandler(UpdateResourceFromMediaContext);
System\Windows\Media\Animation\Clock.cs (1)
3564
TimeManager timeManager =
MediaContext
.From(Dispatcher).TimeManager;
System\Windows\Media\Animation\IndependentAnimationStorage.cs (5)
14
protected
MediaContext
.ResourcesUpdatedHandler _updateResourceHandler;
74
_updateResourceHandler = new
MediaContext
.ResourcesUpdatedHandler(UpdateResource);
120
MediaContext
mediaContext =
MediaContext
.From(d.Dispatcher);
220
MediaContext
.CurrentMediaContext.ResourcesUpdated += _updateResourceHandler;
System\Windows\Media\Animation\TimeManager.cs (2)
96
if (
MediaContext
.IsClockSupported)
98
_systemClock = (IClock)
MediaContext
.From(Dispatcher);
System\Windows\Media\BitmapCacheBrush.cs (3)
84
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
95
mediaContext.ResourcesUpdated += new
MediaContext
.ResourcesUpdatedHandler(cyclicBrush.RenderForCyclicBrush);
System\Windows\Media\CompositionTarget.cs (9)
164
MediaContext
.From(Dispatcher).PostRender();
394
MediaContext
mctx =
MediaContext
.From(Dispatcher);
464
DUCE.ChannelSet channelSet =
MediaContext
.From(Dispatcher).GetChannels();
523
MediaContext
.From(Dispatcher).VerifyWriteAccess();
582
MediaContext
mc =
MediaContext
.From(Dispatcher.CurrentDispatcher);
590
MediaContext
mc =
MediaContext
.From(Dispatcher.CurrentDispatcher);
System\Windows\Media\DrawingVisual.cs (2)
167
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
System\Windows\Media\Effects\PixelShader.cs (4)
49
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
54
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
System\Windows\Media\HostVisual.cs (1)
260
Debug.Assert(_target.OutOfBandChannel ==
MediaContext
.CurrentMediaContext.OutOfBandChannel);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
103
MediaContext
mctx =
MediaContext
.CurrentMediaContext;
System\Windows\Media\Imaging\WriteableBitmap.cs (4)
1240
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
1253
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
System\Windows\Media\MediaContext.cs (6)
1364
internal static
MediaContext
From(Dispatcher dispatcher)
1367
MediaContext
cm = (
MediaContext
)dispatcher.Reserved0;
1380
internal static
MediaContext
CurrentMediaContext
1466
MediaContext
current = From(dispatcher);
1507
MediaContext
.From(dispatcher).UnregisterICompositionTargetInternal(iv);
System\Windows\Media\MediaContextNotificationWindow.cs (2)
44
internal MediaContextNotificationWindow(
MediaContext
ownerMediaContext)
215
private
MediaContext
_ownerMediaContext;
System\Windows\Media\MediaSystem.cs (4)
33
public static bool Startup(
MediaContext
mc)
79
internal static bool ConnectChannels(
MediaContext
mc)
119
internal static void Shutdown(
MediaContext
mc)
175
foreach (
MediaContext
mc in _mediaContexts)
System\Windows\Media\RenderCapability.cs (16)
30
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
59
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
92
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
107
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
125
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
144
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
157
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
168
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
System\Windows\Media\Renderer.cs (4)
116
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
165
MediaContext
mediaContext =
MediaContext
.CurrentMediaContext;
System\Windows\Media\Visual.cs (5)
991
MediaContext
.From(this.Dispatcher).VerifyWriteAccess();
1023
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
5199
MediaContext
mctx =
MediaContext
.From(e.Dispatcher);
System\Windows\Media\VisualBrush.cs (3)
84
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
95
mediaContext.ResourcesUpdated += new
MediaContext
.ResourcesUpdatedHandler(cyclicBrush.RenderForCyclicBrush);
System\Windows\Media\VisualTarget.cs (3)
36
MediaContext
.RegisterICompositionTarget(Dispatcher, this);
62
MediaContext
.UnregisterICompositionTarget(Dispatcher, this);
167
MediaContext
.UnregisterICompositionTarget(Dispatcher, this);
System\Windows\Media3D\ModelUIElement3D.cs (1)
48
(ValidateValueCallback) delegate { return
MediaContext
.CurrentMediaContext.WriteAccessEnabled; });
System\Windows\Media3D\ModelVisual3D.cs (1)
120
(ValidateValueCallback) delegate { return
MediaContext
.CurrentMediaContext.WriteAccessEnabled; });
System\Windows\Media3D\Viewport3DVisual.cs (2)
198
(ValidateValueCallback) delegate { return
MediaContext
.CurrentMediaContext.WriteAccessEnabled; });
244
(ValidateValueCallback) delegate { return
MediaContext
.CurrentMediaContext.WriteAccessEnabled; });
System\Windows\Media3D\Visual3D.cs (2)
148
(ValidateValueCallback) delegate { return
MediaContext
.CurrentMediaContext.WriteAccessEnabled; });
927
MediaContext
.From(this.Dispatcher).VerifyWriteAccess();
System\Windows\UIElement.cs (4)
1318
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
3218
MediaContext
mediaContext =
MediaContext
.From(Dispatcher);
System\Windows\UIElement3D.cs (1)
111
MediaContext
.From(Dispatcher).BeginInvokeOnRender(CallRenderCallback, this);