25 references to OwnerToolStrip
System.Windows.Forms (25)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1499
if (dropDown.
OwnerToolStrip
is not null)
1501
return dropDown.
OwnerToolStrip
.Renderer;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (21)
464
get => IsAutoGenerated &&
OwnerToolStrip
is not null
465
?
OwnerToolStrip
.ImageScalingSizeInternal
473
get =>
OwnerToolStrip
is { } ownerToolStrip ? ownerToolStrip.KeyboardActive : base.KeyboardActive;
478
if (
OwnerToolStrip
is { } ownerToolStrip)
1063
return (topmost.OwnerItem is null) ? null : topmost.
OwnerToolStrip
;
1216
if (
OwnerToolStrip
is not null && OwnerItem is not null)
1218
if (OwnerItem.Bounds.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this,
OwnerToolStrip
)))
1256
if (
OwnerToolStrip
is not null)
1260
if (!
OwnerToolStrip
.IsDropDown)
1262
if (ToolStripManager.ModalMenuFilter.GetActiveToolStrip() !=
OwnerToolStrip
)
1264
ToolStripManager.ModalMenuFilter.SetActiveToolStrip(
OwnerToolStrip
);
1268
OwnerToolStrip
.MenuAutoExpand = false;
1272
if (
OwnerToolStrip
.CanSelect)
1605
if (
OwnerToolStrip
is not null)
1607
OwnerToolStrip
.ActiveDropDowns.Add(this);
1611
OwnerToolStrip
.SnapMouseLocation();
1614
if (
OwnerToolStrip
.Capture)
1721
OwnerToolStrip
?.ActiveDropDowns.Remove(this);
2014
internal bool IsFirstDropDown =>
OwnerToolStrip
as ToolStripDropDown is null;
2023
ToolStripDropDown? ownerDropDown = topmost.
OwnerToolStrip
as ToolStripDropDown;
2027
ownerDropDown = topmost.
OwnerToolStrip
as ToolStripDropDown;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
341
if (!(activeToolStripDropDown.
OwnerToolStrip
is not null
342
&& activeToolStripDropDown.
OwnerToolStrip
.HWND == hwndMouseMessageIsFrom