25 references to OwnerToolStrip
System.Windows.Forms (25)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1496if (dropDown.OwnerToolStrip is not null) 1498return dropDown.OwnerToolStrip.Renderer;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (21)
464get => IsAutoGenerated && OwnerToolStrip is not null 465? OwnerToolStrip.ImageScalingSizeInternal 473get => OwnerToolStrip is { } ownerToolStrip ? ownerToolStrip.KeyboardActive : base.KeyboardActive; 478if (OwnerToolStrip is { } ownerToolStrip) 1057return (topmost.OwnerItem is null) ? null : topmost.OwnerToolStrip; 1210if (OwnerToolStrip is not null && OwnerItem is not null) 1212if (OwnerItem.Bounds.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this, OwnerToolStrip))) 1250if (OwnerToolStrip is not null) 1254if (!OwnerToolStrip.IsDropDown) 1256if (ToolStripManager.ModalMenuFilter.GetActiveToolStrip() != OwnerToolStrip) 1258ToolStripManager.ModalMenuFilter.SetActiveToolStrip(OwnerToolStrip); 1262OwnerToolStrip.MenuAutoExpand = false; 1266if (OwnerToolStrip.CanSelect) 1599if (OwnerToolStrip is not null) 1601OwnerToolStrip.ActiveDropDowns.Add(this); 1605OwnerToolStrip.SnapMouseLocation(); 1608if (OwnerToolStrip.Capture) 1715OwnerToolStrip?.ActiveDropDowns.Remove(this); 2008internal bool IsFirstDropDown => OwnerToolStrip as ToolStripDropDown is null; 2017ToolStripDropDown? ownerDropDown = topmost.OwnerToolStrip as ToolStripDropDown; 2021ownerDropDown = topmost.OwnerToolStrip as ToolStripDropDown;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
336if (!(activeToolStripDropDown.OwnerToolStrip is not null 337&& activeToolStripDropDown.OwnerToolStrip.HWND == hwndMouseMessageIsFrom