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