1 write to _host
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1424
_host
= GetRequiredService<IDesignerHost>();
32 references to _host
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\ToolStripDesigner.cs (32)
489
ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
509
Debug.Assert(
_host
is not null, "Why didn't we get a designer host?");
510
NewItemTransaction =
_host
.CreateTransaction(SR.ToolStripCreatingNewItemTransaction);
523
component =
_host
.CreateComponent(t);
524
designer =
_host
.GetDesigner(component) as ToolStripItemDesigner;
564
Debug.Assert(
_host
is not null, "Why didn't we get a designer host?");
566
DesignerTransaction outerTransaction =
_host
.CreateTransaction(string.Format(SR.ToolStripAddingItem, t.Name));
574
IComponent component =
_host
.CreateComponent(t, NameFromText(text, t, Component.Site));
575
ToolStripItemDesigner designer =
_host
.GetDesigner(component) as ToolStripItemDesigner;
785
ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)
_host
.GetDesigner(ownerItem);
829
if (
_host
.GetDesigner(selectedItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive)
845
if (
_host
.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive)
857
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(toolItem);
999
Debug.Assert(
_host
is not null, "Why didn't we get a designer host?");
1000
_insertMenuItemTransaction = _pendingTransaction =
_host
.CreateTransaction(SR.ToolStripDesignerTransactionAddingItem);
1113
Debug.Assert(
_host
is not null, "Why didn't we get a designer host?");
1117
_pendingTransaction =
_host
.CreateTransaction(SR.ToolStripDesignerTransactionRemovingItem);
1242
if (
_host
is not null)
1244
IDesigner itemDesigner =
_host
.GetDesigner(selectedItem);
1283
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(toolItem);
1306
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
1360
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
1475
Form parentForm =
_host
.RootComponent as Form;
1479
parentFormDesigner =
_host
.GetDesigner(parentForm) as FormDocumentDesigner;
1854
DesignerTransaction changeParent =
_host
.CreateTransaction(transDesc);
1912
if (
_host
.GetDesigner(primaryDropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner)
2055
&&
_host
.GetDesigner(item) is ToolStripItemDesigner designer)
2138
if (
_host
.GetDesigner(selectedItem) is ToolStripMenuItemDesigner selectedItemDesigner)
2239
ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
2338
if (_miniToolStrip is not null &&
_host
is not null)
2433
if (
_host
.GetDesigner(newItem) is ToolStripItemDesigner newItemDesigner)
2471
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);