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