1 implementation of IToolboxService
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
140
internal class SampleToolboxService :
IToolboxService
44 references to IToolboxService
System.Windows.Forms.Design (40)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
37
private
IToolboxService
? _toolboxSvc; // allows us to have the toolbox choose a cursor
586
_toolboxSvc ??= _serviceProvider.GetService<
IToolboxService
>();
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
264
IToolboxService
toolboxService = _serviceProvider.GetRequiredService<
IToolboxService
>();
System\Windows\Forms\Design\CommandSet.cs (3)
685
if (TryGetService(out
IToolboxService
? tbx) && tbx.GetSelectedToolboxItem(GetService<IDesignerHost>()) is not null)
1880
else if (TryGetService(out
IToolboxService
? ts) && ts.IsSupported(dataObj, host))
3108
if (TryGetService(out
IToolboxService
? ts))
System\Windows\Forms\Design\ComponentTray.cs (7)
35
private
IToolboxService
_toolboxService; // cached for drag/drop
1117
_toolboxService ??= (
IToolboxService
)GetService(typeof(
IToolboxService
));
1229
_toolboxService ??= (
IToolboxService
)GetService(typeof(
IToolboxService
));
1492
_toolboxService ??= (
IToolboxService
)GetService(typeof(
IToolboxService
));
System\Windows\Forms\Design\ControlDesigner.cs (3)
41
private
IToolboxService
? _toolboxService;
1583
_toolboxService ??= GetService<
IToolboxService
>();
1894
_toolboxService ??= GetService<
IToolboxService
>();
System\Windows\Forms\Design\DocumentDesigner.cs (9)
389
IToolboxService
toolbox = (
IToolboxService
)GetService(typeof(
IToolboxService
));
758
IToolboxService
toolbox = (
IToolboxService
)host.GetService(typeof(
IToolboxService
));
1387
IToolboxService
toolboxService = (
IToolboxService
)GetService(typeof(
IToolboxService
));
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
143
IToolboxService
? toolboxSvc = GetService<
IToolboxService
>();
System\Windows\Forms\Design\ParentControlDesigner.cs (7)
38
private
IToolboxService
_toolboxService;
1578
_toolboxService ??= (
IToolboxService
)GetService(typeof(
IToolboxService
));
1715
_toolboxService ??= (
IToolboxService
)GetService(typeof(
IToolboxService
));
2067
_toolboxService ??= (
IToolboxService
)GetService(typeof(
IToolboxService
));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
1536
IToolboxService
tbx = (
IToolboxService
)GetService(typeof(
IToolboxService
));
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
48
private
IToolboxService
_toolboxService;
2109
_toolboxService ??= GetService<
IToolboxService
>();
System.Windows.Forms.UI.IntegrationTests (4)
DesignBehaviorsTests.cs (4)
63
serviceContainer.RemoveService(typeof(
IToolboxService
), false);
64
serviceContainer.AddService(typeof(
IToolboxService
), new SampleToolboxService(designerHost));
109
if (designerHost?.GetService(typeof(
IToolboxService
)) is not
IToolboxService
toolboxService ||