17 references to WeakReference
mscorlib (1)
system\diagnostics\eventing\eventsource.cs (1)
5800
s_etwSessions.Add(new
WeakReference
<EtwSession>(etwSession));
PresentationCore (2)
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
1860
_bitmapSource = new
WeakReference
<BitmapSource>(bitmapSource);
Core\CSharp\System\Windows\UIElement.cs (1)
4760
_positionAndSizeOfSetController.SetValue(this, new
WeakReference
<UIElement>(value));
PresentationFramework (11)
src\Framework\System\Windows\Controls\ContextMenu.cs (1)
612
_weakRefToPreviousFocus = new
WeakReference
<IInputElement>(Keyboard.FocusedElement);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
12165
_wrIC = new
WeakReference
<ItemsControl>(itemsControl);
12403
new
WeakReference
<ItemsControl>(target),
src\Framework\System\Windows\Data\Binding.cs (1)
537
SetValue(Feature.ObjectSource, new
WeakReference
<object>(value));
src\Framework\System\Windows\Data\BindingExpressionBase.cs (2)
1813
root.SetValue(Feature.BindingGroup, new
WeakReference
<BindingGroup>(bg));
2958
static readonly WeakReference<BindingGroup> NullBindingGroupReference = new
WeakReference
<BindingGroup>(null);
src\Framework\System\Windows\Data\BindingGroup.cs (3)
597
_inheritanceContext = (inheritanceContext == null) ? NullInheritanceContext : new
WeakReference
<DependencyObject>(inheritanceContext);
635
_inheritanceContext = (inheritanceContext == null) ? NullInheritanceContext : new
WeakReference
<DependencyObject>(inheritanceContext);
1573
static WeakReference<DependencyObject> NullInheritanceContext = new
WeakReference
<DependencyObject>(null);
src\Framework\System\windows\Documents\TextEditor.cs (1)
1761
This._immCompositionForDetach = new
WeakReference
<ImmComposition>(This._immComposition);
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
109
_dispatcher = new
WeakReference
<Dispatcher>(Dispatcher.CurrentDispatcher);
System (1)
net\System\Net\_AutoWebProxyScriptEngine.cs (1)
239
}, new
WeakReference
<AutoWebProxyScriptEngine>(this),
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Control.cs (1)
16226
private readonly WeakReference<ToolStripControlHost> toolStripControlHostReference = new
WeakReference
<ToolStripControlHost>(null);
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
747
private readonly WeakReference<IKeyboardToolTip> lastFocusedTool = new
WeakReference
<IKeyboardToolTip>(null);