ComponentFactory.Krypton.Ribbon.ViewDrawRibbonAppTab.ViewDrawRibbonAppTab C# (CSharp) Method

ViewDrawRibbonAppTab() public method

Initialize a new instance of the ViewDrawRibbonAppTab class.
public ViewDrawRibbonAppTab ( KryptonRibbon ribbon ) : System
ribbon KryptonRibbon Owning control instance.
return System
        public ViewDrawRibbonAppTab(KryptonRibbon ribbon)
        {
            Debug.Assert(ribbon != null);

            _ribbon = ribbon;
            _mementos = new IDisposable[4];

            // Use a class to convert from application tab to content interface
            _paletteGeneral = ribbon.StateCommon.RibbonGeneral;
            _contentProvider = new ApplicationTabToContent(ribbon, _paletteGeneral);

            // Create and add the draw content for display inside the tab
            Add(new ViewDrawContent(_contentProvider, this, VisualOrientation.Top));
        }