2 writes to _target
PresentationCore (2)
Core\CSharp\System\Windows\Media\HostVisual.cs (2)
163
_target
= target;
205
_target
= null;
17 references to _target
PresentationCore (17)
Core\CSharp\System\Windows\Media\HostVisual.cs (17)
156
if (
_target
!= null)
200
Debug.Assert(
_target
!= null);
201
Debug.Assert(
_target
.Dispatcher.Thread == Thread.CurrentThread);
221
targetsHandle =
_target
._contentRoot.DuplicateHandle(
_target
.OutOfBandChannel, (DUCE.Channel)channel);
225
_target
.OutOfBandChannel.CloseBatch();
226
_target
.OutOfBandChannel.Commit();
256
&&
_target
!= null
270
if (
_target
.CheckAccess())
272
Debug.Assert(
_target
._contentRoot.IsOnChannel(channel));
273
Debug.Assert(
_target
.OutOfBandChannel == MediaContext.CurrentMediaContext.OutOfBandChannel);
274
bool created =
_target
._contentRoot.CreateOrAddRefOnChannel(this, channel, VisualTarget.s_contentRootType);
276
targetsHandle =
_target
._contentRoot.GetHandle(channel);
293
object returnValue =
_target
.Dispatcher.Invoke(
387
if (
_target
!= null && _connectedChannels.Contains(channel))
391
_target
._contentRoot.GetHandle(channel),
401
_target
._contentRoot.ReleaseOnChannel(channel);