3 instantiations of ComponentTray
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
903_componentTray = new ComponentTray(this, Component.Site);
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\InheritanceUITests.cs (2)
51ComponentTray componentTray = new(mockDesigner.Object, mockServiceProvider.Object); 74ComponentTray componentTray = new(mockDesigner.Object, mockServiceProvider.Object);
49 references to ComponentTray
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net9.0\System.Design.Forwards.cs (1)
85[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Forms.Design.ComponentTray))]
System.Windows.Forms.Design (45)
System\ComponentModel\Design\DesignerActionUI.cs (9)
192ComponentTray? componentTray = _serviceProvider.GetService<ComponentTray>(); 195ComponentTray.TrayControl trayControl = ComponentTray.GetTrayControlFromComponent(comp); 350ComponentTray? compTray = _serviceProvider.GetService<ComponentTray>(); 531_serviceProvider.GetService<ComponentTray>()?.SelectionGlyphs?.Remove(glyph); 681if (_serviceProvider.GetService(typeof(ComponentTray)) is ComponentTray compTray)
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (3)
145if (_alternativeParent is ComponentTray) 147ComponentTray.TrayControl trayControl = ComponentTray.GetTrayControlFromComponent(relatedComponent);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (5)
391ComponentTray tray = null; 401tray = _serviceProviderTarget.GetService(typeof(ComponentTray)) as ComponentTray; 524tray ??= _serviceProviderTarget.GetService(typeof(ComponentTray)) as ComponentTray;
System\Windows\Forms\Design\CommandSet.cs (3)
1854ComponentTray? tray = GetService<ComponentTray>(); 2133tray ??= GetService<ComponentTray>();
System\Windows\Forms\Design\ComponentTray.cs (6)
1905private readonly ComponentTray _tray; 1918public TrayControl(ComponentTray tray, IComponent component) 2570private readonly ComponentTray _tray; 2571public TrayControlAccessibleObject(TrayControl owner, ComponentTray tray) : base(owner) 2802private readonly ComponentTray _tray; 2808public TraySelectionUIHandler(ComponentTray tray)
System\Windows\Forms\Design\ControlCommandSet.cs (3)
1472ComponentTray tray = (ComponentTray)GetService(typeof(ComponentTray));
System\Windows\Forms\Design\DocumentDesigner.cs (3)
45private ComponentTray _componentTray; 370host.RemoveService<ComponentTray>(); 954host?.RemoveService<ComponentTray>();
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (4)
123ComponentTray? tray = host.GetService<ComponentTray>(); 129ComponentTray.TrayControl? trayControl = ComponentTray.GetTrayControlFromComponent(component);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (9)
1795ComponentTray tray = (ComponentTray)_provider.GetService(typeof(ComponentTray)); 1892ComponentTray tray = (ComponentTray)_provider.GetService(typeof(ComponentTray)); 1997ComponentTray tray = (ComponentTray)_provider.GetService(typeof(ComponentTray));
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\InheritanceUITests.cs (3)
9using static System.Windows.Forms.Design.ComponentTray; 51ComponentTray componentTray = new(mockDesigner.Object, mockServiceProvider.Object); 74ComponentTray componentTray = new(mockDesigner.Object, mockServiceProvider.Object);