1 write to _host
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1397
_host
= GetRequiredService<IDesignerHost>();
32 references to _host
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\ToolStripDesigner.cs (32)
456
ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
476
Debug.Assert(
_host
is not null, "Why didn't we get a designer host?");
477
NewItemTransaction =
_host
.CreateTransaction(SR.ToolStripCreatingNewItemTransaction);
490
component =
_host
.CreateComponent(t);
491
designer =
_host
.GetDesigner(component) as ToolStripItemDesigner;
525
Debug.Assert(
_host
is not null, "Why didn't we get a designer host?");
527
DesignerTransaction outerTransaction =
_host
.CreateTransaction(string.Format(SR.ToolStripAddingItem, t.Name));
535
IComponent component =
_host
.CreateComponent(t, NameFromText(text, t, Component.Site));
536
ToolStripItemDesigner designer =
_host
.GetDesigner(component) as ToolStripItemDesigner;
783
if (
_host
.GetDesigner(selectedItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive)
799
if (
_host
.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive)
811
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(toolItem);
969
Debug.Assert(
_host
is not null, "Why didn't we get a designer host?");
970
_insertMenuItemTransaction = _pendingTransaction =
_host
.CreateTransaction(SR.ToolStripDesignerTransactionAddingItem);
1077
Debug.Assert(
_host
is not null, "Why didn't we get a designer host?");
1081
_pendingTransaction =
_host
.CreateTransaction(SR.ToolStripDesignerTransactionRemovingItem);
1224
if (
_host
is not null)
1226
IDesigner itemDesigner =
_host
.GetDesigner(selectedItem);
1265
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(toolItem);
1288
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
1342
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
1398
_componentChangeService =
_host
.GetService<IComponentChangeService>();
1481
Form parentForm =
_host
.RootComponent as Form;
1486
parentFormDesigner =
_host
.GetDesigner(parentForm) as FormDocumentDesigner;
1875
DesignerTransaction changeParent =
_host
.CreateTransaction(transDesc);
1927
if (
_host
.GetDesigner(primaryDropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner)
2070
&&
_host
.GetDesigner(item) is ToolStripItemDesigner designer)
2153
if (
_host
.GetDesigner(selectedItem) is ToolStripMenuItemDesigner selectedItemDesigner)
2254
ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
2345
if (_miniToolStrip is not null &&
_host
is not null)
2431
if (
_host
.GetDesigner(newItem) is ToolStripItemDesigner newItemDesigner)
2469
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);