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)
51
ComponentTray componentTray =
new
(mockDesigner.Object, mockServiceProvider.Object);
74
ComponentTray 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)
192
ComponentTray
? componentTray = _serviceProvider.GetService<
ComponentTray
>();
195
ComponentTray
.TrayControl trayControl =
ComponentTray
.GetTrayControlFromComponent(comp);
350
ComponentTray
? compTray = _serviceProvider.GetService<
ComponentTray
>();
531
_serviceProvider.GetService<
ComponentTray
>()?.SelectionGlyphs?.Remove(glyph);
681
if (_serviceProvider.GetService(typeof(
ComponentTray
)) is
ComponentTray
compTray)
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (3)
145
if (_alternativeParent is
ComponentTray
)
147
ComponentTray
.TrayControl trayControl =
ComponentTray
.GetTrayControlFromComponent(relatedComponent);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (5)
391
ComponentTray
tray = null;
401
tray = _serviceProviderTarget.GetService(typeof(
ComponentTray
)) as
ComponentTray
;
524
tray ??= _serviceProviderTarget.GetService(typeof(
ComponentTray
)) as
ComponentTray
;
System\Windows\Forms\Design\CommandSet.cs (3)
1854
ComponentTray
? tray = GetService<
ComponentTray
>();
2133
tray ??= GetService<
ComponentTray
>();
System\Windows\Forms\Design\ComponentTray.cs (6)
1905
private readonly
ComponentTray
_tray;
1918
public TrayControl(
ComponentTray
tray, IComponent component)
2570
private readonly
ComponentTray
_tray;
2571
public TrayControlAccessibleObject(TrayControl owner,
ComponentTray
tray) : base(owner)
2802
private readonly
ComponentTray
_tray;
2808
public TraySelectionUIHandler(
ComponentTray
tray)
System\Windows\Forms\Design\ControlCommandSet.cs (3)
1472
ComponentTray
tray = (
ComponentTray
)GetService(typeof(
ComponentTray
));
System\Windows\Forms\Design\DocumentDesigner.cs (3)
45
private
ComponentTray
_componentTray;
370
host.RemoveService<
ComponentTray
>();
954
host?.RemoveService<
ComponentTray
>();
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (4)
123
ComponentTray
? tray = host.GetService<
ComponentTray
>();
129
ComponentTray
.TrayControl? trayControl =
ComponentTray
.GetTrayControlFromComponent(component);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (9)
1795
ComponentTray
tray = (
ComponentTray
)_provider.GetService(typeof(
ComponentTray
));
1892
ComponentTray
tray = (
ComponentTray
)_provider.GetService(typeof(
ComponentTray
));
1997
ComponentTray
tray = (
ComponentTray
)_provider.GetService(typeof(
ComponentTray
));
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\InheritanceUITests.cs (3)
9
using static System.Windows.Forms.Design.
ComponentTray
;
51
ComponentTray
componentTray = new(mockDesigner.Object, mockServiceProvider.Object);
74
ComponentTray
componentTray = new(mockDesigner.Object, mockServiceProvider.Object);