public RibbonGalleryItem() { this.m_ScrollUpButton = new ScrollUpButtonItem(this); this.m_ScrollDownButton = new ScrollDownButtonItem(this); this.m_ScrollDropDownButton = new ScrollDropDownButtonItem(this); // this.m_RibbonGalleryPopup = new RibbonGalleryPopup(this); ((ISetOwnerHelper)this.m_RibbonGalleryPopup).SetOwner(this); this.m_RibbonGalleryPopup.PopupOpened += new EventHandler(RibbonGalleryPopup_PopupOpened); this.m_RibbonGalleryPopup.PopupClosed += new EventHandler(RibbonGalleryPopup_PopupClosed); }
public RibbonGallery() : base() { base.BackColor = System.Drawing.Color.Transparent; // this.m_ScrollUpButton = new ScrollUpButtonItem(this); this.m_ScrollDownButton = new ScrollDownButtonItem(this); this.m_ScrollDropDownButton = new ScrollDropDownButtonItem(this); // this.m_RibbonGalleryPopup = new RibbonGalleryPopup(this); ((ISetOwnerHelper)this.m_RibbonGalleryPopup).SetOwner(this); this.m_RibbonGalleryPopup.PopupOpened += new EventHandler(RibbonGalleryPopup_PopupOpened); this.m_RibbonGalleryPopup.PopupClosed += new EventHandler(RibbonGalleryPopup_PopupClosed); }