25 references to OwnerToolStrip
System.Windows.Forms (25)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1497if (dropDown.OwnerToolStrip is not null) 1499return 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) 1060return (topmost.OwnerItem is null) ? null : topmost.OwnerToolStrip; 1213if (OwnerToolStrip is not null && OwnerItem is not null) 1215if (OwnerItem.Bounds.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this, OwnerToolStrip))) 1253if (OwnerToolStrip is not null) 1257if (!OwnerToolStrip.IsDropDown) 1259if (ToolStripManager.ModalMenuFilter.GetActiveToolStrip() != OwnerToolStrip) 1261ToolStripManager.ModalMenuFilter.SetActiveToolStrip(OwnerToolStrip); 1265OwnerToolStrip.MenuAutoExpand = false; 1269if (OwnerToolStrip.CanSelect) 1602if (OwnerToolStrip is not null) 1604OwnerToolStrip.ActiveDropDowns.Add(this); 1608OwnerToolStrip.SnapMouseLocation(); 1611if (OwnerToolStrip.Capture) 1718OwnerToolStrip?.ActiveDropDowns.Remove(this); 2011internal bool IsFirstDropDown => OwnerToolStrip as ToolStripDropDown is null; 2020ToolStripDropDown? ownerDropDown = topmost.OwnerToolStrip as ToolStripDropDown; 2024ownerDropDown = topmost.OwnerToolStrip as ToolStripDropDown;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
339if (!(activeToolStripDropDown.OwnerToolStrip is not null 340&& activeToolStripDropDown.OwnerToolStrip.HWND == hwndMouseMessageIsFrom