1 implementation of INestedContainer
System.ComponentModel.TypeConverter (1)
System\ComponentModel\NestedContainer.cs (1)
16public class NestedContainer : Container, INestedContainer
55 references to INestedContainer
netstandard (1)
netstandard.cs (1)
337[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.INestedContainer))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
323[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.INestedContainer))]
System.ComponentModel.TypeConverter (1)
System\ComponentModel\NestedContainer.cs (1)
85if (service == typeof(INestedContainer))
System.Windows.Forms.Design (13)
System\ComponentModel\Design\DesignerHost.Site.cs (2)
38SiteNestedContainer? nc = (((IServiceProvider)this).GetService(typeof(INestedContainer)) as SiteNestedContainer); 159if (service == typeof(INestedContainer))
System\ComponentModel\Design\DesignSurface.cs (2)
306public INestedContainer CreateNestedContainer(IComponent owningComponent) 317public INestedContainer CreateNestedContainer(IComponent owningComponent, string? containerName)
System\ComponentModel\Design\InheritanceService.cs (1)
267if (sender is INestedContainer nested && nested.Owner == _addingComponent)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (2)
233if (!site.TryGetService(out INestedContainer? container)) 478if (c.Site.TryGetService(out INestedContainer? nested) && nested.Components.Count > 0)
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (2)
100if (e.Component!.Site?.Container is INestedContainer) 335if (e.Component!.Site is INestedContainer)
System\Windows\Forms\Design\ControlCommandSet.cs (2)
1025INestedContainer nestedContainer = nestedSite.Container as INestedContainer;
System\Windows\Forms\Design\ControlDesigner.cs (1)
584if (!TryGetService(out INestedContainer? nc))
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
29private INestedContainer _nestedContainer; // NestedContainer for our DesignTime MenuItem.
System.Windows.Forms.Design.Tests (39)
Mocks\MockSite.cs (1)
46.Setup(s => s.GetService(typeof(INestedContainer)))
System\ComponentModel\Design\DesignerHostTests.cs (9)
1503INestedContainer nestedContainer = Assert.IsAssignableFrom<INestedContainer>(component.Site.GetService(typeof(INestedContainer))); 1506Assert.Same(nestedContainer, component.Site.GetService(typeof(INestedContainer))); 1516INestedContainer container = Assert.IsAssignableFrom<INestedContainer>(component.Site.GetService(typeof(INestedContainer))); 1517Assert.Same(container, component.Site.GetService(typeof(INestedContainer))); 1550NestedContainer container = Assert.IsAssignableFrom<NestedContainer>(component.Site.GetService(typeof(INestedContainer)));
System\ComponentModel\Design\DesignSurfaceTests.cs (2)
1133using INestedContainer container = surface.CreateNestedContainer(ownerComponent); 1144using INestedContainer container = surface.CreateNestedContainer(ownerComponent, containerName);
System\ComponentModel\Design\SiteNestedContainerTests.cs (26)
72using INestedContainer container = surface.CreateNestedContainer(ownerComponent, containerName); 175using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 232using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 335using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 406using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 485using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 499using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 513using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 568using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 581using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 594using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 605using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 621using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 650using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 669using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 748using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 812using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 842using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 860using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 877using INestedContainer container1 = surface.CreateNestedContainer(component1, "containerName"); 879using INestedContainer container2 = surface.CreateNestedContainer(component2, "containerName"); 896using INestedContainer container1 = surface.CreateNestedContainer(component1, "containerName"); 898using INestedContainer container2 = surface.CreateNestedContainer(component2, "containerName"); 914using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 982using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName"); 1005using INestedContainer container = surface.CreateNestedContainer(owningComponent, "containerName");
TestControlDesigner.Mocks.cs (1)
78.Setup(s => s.GetService(typeof(INestedContainer)))