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