ComponentFactory.Krypton.Ribbon.VisualPopupAppMenu.CreateContextMenuView C# (CSharp) Method

CreateContextMenuView() private method

private CreateContextMenuView ( RibbonAppButton appButton ) : void
appButton RibbonAppButton
return void
        private void CreateContextMenuView(RibbonAppButton appButton)
        {
            // Ask the top level collection to generate the child view elements
            KryptonContextMenuCollection topCollection = new KryptonContextMenuCollection();
            KryptonContextMenuItems topItems = new KryptonContextMenuItems();
            topItems.ImageColumn = false;
            topCollection.Add(topItems);
            foreach (KryptonContextMenuItemBase item in appButton.AppButtonMenuItems)
                topItems.Items.Add(item);
            topCollection.GenerateView(_provider, this, _viewColumns, true, true);
        }