25 references to OwnerToolStrip
System.Windows.Forms (25)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1499if (dropDown.OwnerToolStrip is not null) 1501return 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) 1063return (topmost.OwnerItem is null) ? null : topmost.OwnerToolStrip; 1216if (OwnerToolStrip is not null && OwnerItem is not null) 1218if (OwnerItem.Bounds.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this, OwnerToolStrip))) 1256if (OwnerToolStrip is not null) 1260if (!OwnerToolStrip.IsDropDown) 1262if (ToolStripManager.ModalMenuFilter.GetActiveToolStrip() != OwnerToolStrip) 1264ToolStripManager.ModalMenuFilter.SetActiveToolStrip(OwnerToolStrip); 1268OwnerToolStrip.MenuAutoExpand = false; 1272if (OwnerToolStrip.CanSelect) 1605if (OwnerToolStrip is not null) 1607OwnerToolStrip.ActiveDropDowns.Add(this); 1611OwnerToolStrip.SnapMouseLocation(); 1614if (OwnerToolStrip.Capture) 1721OwnerToolStrip?.ActiveDropDowns.Remove(this); 2014internal bool IsFirstDropDown => OwnerToolStrip as ToolStripDropDown is null; 2023ToolStripDropDown? ownerDropDown = topmost.OwnerToolStrip as ToolStripDropDown; 2027ownerDropDown = topmost.OwnerToolStrip as ToolStripDropDown;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
341if (!(activeToolStripDropDown.OwnerToolStrip is not null 342&& activeToolStripDropDown.OwnerToolStrip.HWND == hwndMouseMessageIsFrom