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