24 references to TryGetTarget
mscorlib (3)
system\diagnostics\eventing\eventsource.cs (3)
5781
if (wrEtwSession.
TryGetTarget
(out etwSession) && etwSession.m_etwSessionId == etwSessionId)
5823
return wrEtwSession.
TryGetTarget
(out session) &&
5843
return !wrEtwSession.
TryGetTarget
(out session);
PresentationCore (6)
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (5)
1866
if(_bitmapSource.
TryGetTarget
(out bitmapSource))
1883
if(_bitmapSource.
TryGetTarget
(out bitmapSource))
1898
if(_bitmapSource.
TryGetTarget
(out bitmapSource))
1919
if(_bitmapSource.
TryGetTarget
(out bitmapSource))
1953
if(_bitmapSource.
TryGetTarget
(out bitmapSource))
Core\CSharp\System\Windows\UIElement.cs (1)
4752
wRef?.
TryGetTarget
(out element);
PresentationFramework (12)
src\Framework\System\Windows\Controls\ContextMenu.cs (1)
625
if (_weakRefToPreviousFocus.
TryGetTarget
(out previousFocus))
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
12245
if (_wrIC.
TryGetTarget
(out ic))
12263
if (_wrIC.
TryGetTarget
(out ic))
12356
if (wr.
TryGetTarget
(out itemsControl) && itemsControl == target)
12429
if (!wr.
TryGetTarget
(out unused))
src\Framework\System\Windows\Data\Binding.cs (1)
526
return wr.
TryGetTarget
(out target) ? target : null;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
221
return (wr.
TryGetTarget
(out bg)) ? bg : null;
src\Framework\System\Windows\Data\BindingGroup.cs (3)
571
if (!_inheritanceContext.
TryGetTarget
(out inheritanceContext))
591
_inheritanceContext.
TryGetTarget
(out inheritanceContext);
629
_inheritanceContext.
TryGetTarget
(out inheritanceContext);
src\Framework\System\windows\Documents\TextEditor.cs (1)
208
if (_immCompositionForDetach.
TryGetTarget
(out immComposition))
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
840
!_dispatcher.
TryGetTarget
(out dispatcher) ||
System (1)
net\System\Net\_AutoWebProxyScriptEngine.cs (1)
235
if (wr.
TryGetTarget
(out thisRef))
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Control.cs (1)
16231
this.toolStripControlHostReference.
TryGetTarget
(out value);
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
932
if(this.lastFocusedTool.
TryGetTarget
(out tool) && tool != null) {