17 references to WeakReference
mscorlib (1)
system\diagnostics\eventing\eventsource.cs (1)
5800s_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); 12403new WeakReference<ItemsControl>(target),
src\Framework\System\Windows\Data\Binding.cs (1)
537SetValue(Feature.ObjectSource, new WeakReference<object>(value));
src\Framework\System\Windows\Data\BindingExpressionBase.cs (2)
1813root.SetValue(Feature.BindingGroup, new WeakReference<BindingGroup>(bg)); 2958static 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); 1573static WeakReference<DependencyObject> NullInheritanceContext = new WeakReference<DependencyObject>(null);
src\Framework\System\windows\Documents\TextEditor.cs (1)
1761This._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)
16226private readonly WeakReference<ToolStripControlHost> toolStripControlHostReference = new WeakReference<ToolStripControlHost>(null);
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
747private readonly WeakReference<IKeyboardToolTip> lastFocusedTool = new WeakReference<IKeyboardToolTip>(null);