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

VisualPopupQATOverflow() public method

Initialize a new instance of the VisualPopupQATOverflow class.
public VisualPopupQATOverflow ( KryptonRibbon ribbon, ViewLayoutRibbonQATContents contents, IRenderer renderer ) : System
ribbon KryptonRibbon Reference to owning ribbon control.
contents ViewLayoutRibbonQATContents Reference to original contents which has overflow items.
renderer IRenderer Drawing renderer.
return System
        public VisualPopupQATOverflow(KryptonRibbon ribbon,
                                      ViewLayoutRibbonQATContents contents,
                                      IRenderer renderer)
            : base(renderer, true)
        {
            Debug.Assert(ribbon != null);

            // Remember references needed later
            _ribbon = ribbon;

            // Create a view element for drawing the group
            _viewQAT = new ViewDrawRibbonQATOverflow(ribbon, NeedPaintDelegate);

            // Create and add the element used to synch and draw the actual contents
            _viewQATContents = new ViewLayoutRibbonQATFromOverflow(this, ribbon,
                                                                   NeedPaintDelegate,
                                                                   true, contents);
            _viewQAT.Add(_viewQATContents);

            // Attach the root to the view manager instance
            ViewManager = new ViewRibbonQATOverflowManager(ribbon, this, _viewQATContents, _viewQAT);
        }