1 write to _host
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1423
_host
= GetRequiredService<IDesignerHost>();
31 references to _host
System.Windows.Forms.Design (31)
System\Windows\Forms\Design\ToolStripDesigner.cs (31)
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;
828
if (
_host
.GetDesigner(selectedItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive)
844
if (
_host
.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive)
856
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(toolItem);
998
Debug.Assert(
_host
is not null, "Why didn't we get a designer host?");
999
_insertMenuItemTransaction = _pendingTransaction =
_host
.CreateTransaction(SR.ToolStripDesignerTransactionAddingItem);
1112
Debug.Assert(
_host
is not null, "Why didn't we get a designer host?");
1116
_pendingTransaction =
_host
.CreateTransaction(SR.ToolStripDesignerTransactionRemovingItem);
1241
if (
_host
is not null)
1243
IDesigner itemDesigner =
_host
.GetDesigner(selectedItem);
1282
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(toolItem);
1305
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
1359
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
1474
Form parentForm =
_host
.RootComponent as Form;
1478
parentFormDesigner =
_host
.GetDesigner(parentForm) as FormDocumentDesigner;
1853
DesignerTransaction changeParent =
_host
.CreateTransaction(transDesc);
1911
if (
_host
.GetDesigner(primaryDropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner)
2054
&&
_host
.GetDesigner(item) is ToolStripItemDesigner designer)
2137
if (
_host
.GetDesigner(selectedItem) is ToolStripMenuItemDesigner selectedItemDesigner)
2238
ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
2337
if (_miniToolStrip is not null &&
_host
is not null)
2432
if (
_host
.GetDesigner(newItem) is ToolStripItemDesigner newItemDesigner)
2470
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);