internal override void SetOwnerPanel(RibbonPanel ownerPanel) { base.SetOwnerPanel(ownerPanel); _buttons.SetOwnerPanel(ownerPanel); _dropDownItems.SetOwnerPanel(ownerPanel); }
internal override void SetOwnerPanel(RibbonPanel ownerPanel) { base.SetOwnerPanel(ownerPanel); if (_dropDownItems != null) { _dropDownItems.SetOwnerPanel(ownerPanel); } }
/// <summary> /// Creates a new RibbonPanel /// </summary> public RibbonPanel() { _items = new RibbonItemCollection(); _sizeMode = RibbonElementSizeMode.None; _flowsTo = RibbonPanelFlowDirection.Bottom; _buttonMoreEnabled = true; _buttonMoreVisible = true; _items.SetOwnerPanel(this); _enabled = true; }