private NRibbonTabPage CreateInsertPage()
        {
            NRibbonTabPage page = new NRibbonTabPage("Insert");

            // The "Page" group
            NRibbonGroup group = new NRibbonGroup("Page");

            group.Icon = NResources.Image_Ribbon_16x16_cover_page_png;

            NRibbonCollapsiblePanel panel = new NRibbonCollapsiblePanel();

            group.Items.Add(panel);

            NRibbonButton button = new NRibbonButton("Cover Page");

            button.LargeImage = NResources.Image_Ribbon_32x32_cover_page_png;
            button.SmallImage = NResources.Image_Ribbon_16x16_cover_page_png;
            panel.Add(button);

            NImageBox imageBox = new NImageBox(NResources.Image_Ribbon_16x16_character_bold_small_png);

            button            = new NRibbonButton("Blank Page");
            button.LargeImage = NResources.Image_Ribbon_32x32_page_png;
            button.SmallImage = NResources.Image_Ribbon_16x16_page_png;
            panel.Add(button);

            button            = new NRibbonButton("Page Break");
            button.LargeImage = NResources.Image_Ribbon_32x32_page_break_png;
            button.SmallImage = NResources.Image_Ribbon_16x16_page_break_png;
            panel.Add(button);

            page.Groups.Add(group);

            return(page);
        }
Exemple #2
0
        private void InitializeComponent()
        {
            /*
            *   Window setup
            * */
            this.Text = "Dagobar";
            this.Size = new System.Drawing.Size(16 * windowCoeff, 9 * windowCoeff);
            this.MinimumSize = new System.Drawing.Size(this.Width / 2, this.Height / 2);

            #region "Controls Setup & Layout Setup"
            textBoxSend = new NTextBox();
            textBoxSend.Font = new Nevron.Nov.Graphics.NFont("Lucidia Console", 12);
            textBoxSend.VerticalPlacement = Nevron.Nov.Layout.ENVerticalPlacement.Center;
            textBoxSend.Margins = new Nevron.Nov.Graphics.NMargins(1, 3, 0, 3);
            textBoxSend.KeyUp += textBoxSend_KeyUp;

            buttonSend = new NButton("Envoyer");
            buttonSend.PreferredWidth = 100;
            buttonSend.Content.HorizontalPlacement = Nevron.Nov.Layout.ENHorizontalPlacement.Center;
            buttonSend.Margins = new Nevron.Nov.Graphics.NMargins(3.0);
            buttonSend.Click += buttonSend_Click;

            panelSend = new NStackPanel();
            panelSend.Direction = Nevron.Nov.Layout.ENHVDirection.LeftToRight;
            panelSend.FillMode = Nevron.Nov.Layout.ENStackFillMode.First;
            panelSend.Add(textBoxSend);
            panelSend.Add(buttonSend);

            listBoxChat = new NListBox();
            listBoxChat.Margins = new Nevron.Nov.Graphics.NMargins(1.0);

            panelChat = new NStackPanel();
            panelChat.Direction = Nevron.Nov.Layout.ENHVDirection.TopToBottom;
            panelChat.FillMode = Nevron.Nov.Layout.ENStackFillMode.First;
            panelChat.Add(listBoxChat);
            panelChat.Add(panelSend);

            labelChannel = new NLabel("/--/");
            labelChannel.HorizontalPlacement = Nevron.Nov.Layout.ENHorizontalPlacement.Center;
            labelChannel.Font = new Nevron.Nov.Graphics.NFont("Lucidia Console", 14);

            listBoxUsers = new NListBox();
            listBoxUsers.Margins = new Nevron.Nov.Graphics.NMargins(1.0);

            panelUsers = new NStackPanel();
            panelUsers.Direction = Nevron.Nov.Layout.ENHVDirection.TopToBottom;
            panelUsers.FillMode = Nevron.Nov.Layout.ENStackFillMode.Last;
            panelUsers.Add(labelChannel);
            panelUsers.Add(listBoxUsers);
            panelUsers.PreferredWidth = 150;

            panelTabChat = new NStackPanel();
            panelTabChat.FillMode = Nevron.Nov.Layout.ENStackFillMode.First;
            panelTabChat.Direction = Nevron.Nov.Layout.ENHVDirection.LeftToRight;
            panelTabChat.Add(panelChat);
            panelTabChat.Add(panelUsers);

            panelMain = new NStackPanel();
            panelMain.Direction = Nevron.Nov.Layout.ENHVDirection.LeftToRight;
            panelMain.FillMode = Nevron.Nov.Layout.ENStackFillMode.Last;
            panelMain.Add(panelTabChat);

            panelRibbonInformations = new NStackPanel();
            panelRibbonInformations.FillMode = Nevron.Nov.Layout.ENStackFillMode.Equal;

            labelRibbonChannel = new NLabel("Chaîne : /--/");
            labelRibbonChannel.HorizontalPlacement = Nevron.Nov.Layout.ENHorizontalPlacement.Center;
            labelRibbonViewers = new NLabel("Nombre de spectateurs : /--/");
            labelRibbonViewers.HorizontalPlacement = Nevron.Nov.Layout.ENHorizontalPlacement.Center;
            labelRibbonVersion = new NLabel("Version : " + Properties.Settings.Default.Version);
            labelRibbonVersion.HorizontalPlacement = Nevron.Nov.Layout.ENHorizontalPlacement.Center;

            panelRibbonInformations.Add(labelRibbonChannel);
            panelRibbonInformations.Add(labelRibbonViewers);
            panelRibbonInformations.Add(labelRibbonVersion);

            ribbonGroupInformations = new NRibbonGroup("Informations");
            ribbonGroupInformations.Header.DialogLauncherButton.Visibility = ENVisibility.Hidden;
            ribbonGroupInformations.PreferredHeight = 64;
            ribbonGroupInformations.Items.Add(panelRibbonInformations);

            listBoxPlugins = new NListBox();
            listBoxPlugins.VScrollMode = ENScrollMode.Always;
            listBoxPlugins.PreferredHeight = 64;
            listBoxPlugins.PreferredWidth = 256;

            ribbonGroupPlugins = new NRibbonGroup("Plugins");
            ribbonGroupPlugins.Header.DialogLauncherButton.Visibility = ENVisibility.Hidden;
            ribbonGroupPlugins.Items.Add(listBoxPlugins);

            ribbonButtonConfiguration = new NRibbonButton("Configuration", NImage.FromFile(Application.StartupPath + @"\Resources\settings.png"), NImage.FromFile(Application.StartupPath + @"\Resources\settings.png"));
            ribbonButtonConfiguration.PreferredWidth = 86;
            ribbonButtonConfiguration.Click += ribbonButtonConfiguration_Click;

            ribbonButtonChannel = new NRibbonButton("Changer de chaîne", NImage.FromFile(Application.StartupPath + @"\Resources\move_shit_around.png"), NImage.FromFile(Application.StartupPath + @"\Resources\move_shit_around.png"));
            ribbonButtonChannel.PreferredWidth = 86;
            ribbonButtonChannel.Click += ribbonButtonChannel_Click;

            ribbonButtonQuit = new NRibbonButton("Quitter", NImage.FromFile(Application.StartupPath + @"\Resources\quit.png"), NImage.FromFile(Application.StartupPath + @"\Resources\quit.png"));
            ribbonButtonQuit.PreferredWidth = 86;
            ribbonButtonQuit.Click += ribbonButtonQuit_Click;

            ribbonGroupActions = new NRibbonGroup("Actions");
            ribbonGroupActions.Header.DialogLauncherButton.Visibility = ENVisibility.Hidden;
            ribbonGroupActions.Items.Add(ribbonButtonConfiguration);
            ribbonGroupActions.Items.Add(ribbonButtonChannel);
            ribbonGroupActions.Items.Add(ribbonButtonQuit);

            ribbonTagPageMain = new NRibbonTabPage("Dagobar");
            ribbonTagPageMain.Groups.Add(ribbonGroupInformations);
            ribbonTagPageMain.Groups.Add(ribbonGroupPlugins);
            ribbonTagPageMain.Groups.Add(ribbonGroupActions);

            ribbon = new NRibbon();
            ribbon.Tab.TabPages.Add(ribbonTagPageMain);

            panelRibbon = new NStackPanel();
            panelRibbon.FillMode = Nevron.Nov.Layout.ENStackFillMode.Last;
            panelRibbon.Add(ribbon);
            panelRibbon.Add(panelMain);
            #endregion

            // Create main control
            controlMain = new NNovWidgetHost<NStackPanel>(panelRibbon);
            controlMain.Dock = DockStyle.Fill;
        }
        private NRibbonTabPage CreateHomePage()
        {
            NRibbonTabPage page = new NRibbonTabPage("Home");

            #region Clipboard Group

            NRibbonGroup ribbonGroup = new NRibbonGroup("Group Title");
            ribbonGroup.InitialState = (int)ENRibbonGroupState.Medium;

            NRibbonGroup group = new NRibbonGroup("Clipboard");
            group.Icon = NResources.Image_Ribbon_16x16_clipboard_copy_png;
            page.Groups.Add(group);

            NRibbonSplitButton pasteSplitButton = NRibbonSplitButton.CreateLarge("Paste", NResources.Image_Ribbon_32x32_clipboard_paste_png);
            pasteSplitButton.CollapseToMedium = ENCollapseCondition.Never;
            pasteSplitButton.CollapseToSmall  = ENCollapseCondition.Never;

            NMenu pasteMenu = new NMenu();
            pasteMenu.Items.Add(new NMenuItem("Paste"));
            pasteMenu.Items.Add(new NMenuItem("Paste Special..."));
            pasteMenu.Items.Add(new NMenuItem("Paste as Link"));
            pasteSplitButton.Popup.Content = pasteMenu;

            group.Items.Add(pasteSplitButton);

            NRibbonCollapsiblePanel collapsiblePanel = new NRibbonCollapsiblePanel();
            collapsiblePanel.InitialState = (int)ENRibbonWidgetState.Medium;
            group.Items.Add(collapsiblePanel);

            collapsiblePanel.Add(new NRibbonButton("Cut", null, NResources.Image_Ribbon_16x16_clipboard_cut_png));
            collapsiblePanel.Add(new NRibbonButton("Copy", null, NResources.Image_Ribbon_16x16_clipboard_copy_png));
            collapsiblePanel.Add(new NRibbonButton("Format Painter", null, NResources.Image_Ribbon_16x16_copy_format_png));

            #endregion

            #region Font Group

            group      = new NRibbonGroup("Font");
            group.Icon = NResources.Image_Ribbon_16x16_character_change_case_png;
            page.Groups.Add(group);

            NRibbonWrapFlowPanel wrapPanel = new NRibbonWrapFlowPanel();
            wrapPanel.HorizontalSpacing = NDesign.HorizontalSpacing;
            group.Items.Add(wrapPanel);

            NRibbonStackPanel stackPanel = CreateStackPanel();
            wrapPanel.Add(stackPanel);
            NFontNameComboBox fontNameComboBox = new NFontNameComboBox();
            fontNameComboBox.SelectedIndex = 5;
            stackPanel.Add(fontNameComboBox);
            NComboBox fontSizeComboBox = new NComboBox();
            FillFontSizeCombo(fontSizeComboBox);
            fontSizeComboBox.SelectedIndex = 2;
            stackPanel.Add(fontSizeComboBox);

            stackPanel = CreateStackPanel();
            stackPanel.Add(NRibbonButton.CreateSmall("Grow Font", NResources.Image_Ribbon_16x16_font_grow_png));
            stackPanel.Add(NRibbonButton.CreateSmall("Shrink Font", NResources.Image_Ribbon_16x16_font_shrink_png));
            stackPanel.Add(new NRibbonSeparator());
            wrapPanel.Add(stackPanel);

            NRibbonMenuDropDown changeCaseMenu = NRibbonMenuDropDown.CreateSmall("Change Case", NResources.Image_Ribbon_16x16_character_change_case_png);
            changeCaseMenu.Menu.Items.Add(new NMenuItem("lowercase"));
            changeCaseMenu.Menu.Items.Add(new NMenuItem("UPPERCASE"));
            changeCaseMenu.Menu.Items.Add(new NMenuItem("Capitalize Each Word"));
            wrapPanel.Add(changeCaseMenu);

            stackPanel = CreateStackPanel();
            stackPanel.Add(NRibbonToggleButton.CreateSmall("Bold", NResources.Image_Ribbon_16x16_character_bold_small_png));
            stackPanel.Add(NRibbonToggleButton.CreateSmall("Italic", NResources.Image_Ribbon_16x16_character_italic_small_png));
            stackPanel.Add(NRibbonToggleButton.CreateSmall("Underline", NResources.Image_Ribbon_16x16_character_underline_small_png));
            stackPanel.Add(NRibbonToggleButton.CreateSmall("Strikethrough", NResources.Image_Ribbon_16x16_character_strikethrough_small_png));
            NRibbonStackPanel panel2 = CreateStackPanel();
            panel2.Add(NRibbonToggleButton.CreateSmall("Subscript", NResources.Image_Ribbon_16x16_character_subscript_small_png));
            panel2.Add(NRibbonToggleButton.CreateSmall("Superscript", NResources.Image_Ribbon_16x16_character_superscript_small_png));
            stackPanel.Add(new NToggleButtonGroup(panel2));
            stackPanel.Add(new NRibbonSeparator());
            wrapPanel.Add(stackPanel);

            NFillSplitButton fillSplitButton = new NFillSplitButton();
            fillSplitButton.Image = NResources.Image_Ribbon_16x16_TextFill_png;
            wrapPanel.Add(fillSplitButton);

            #endregion

            #region Paragraph Group

            group      = new NRibbonGroup("Paragraph");
            group.Icon = NResources.Image_Ribbon_16x16_paragraph_align_center_png;
            page.Groups.Add(group);

            wrapPanel = new NRibbonWrapFlowPanel();
            wrapPanel.HorizontalSpacing = NDesign.HorizontalSpacing;
            group.Items.Add(wrapPanel);

            stackPanel = CreateStackPanel();
            stackPanel.Add(NRibbonSplitButton.CreateSmall("Bullets", NResources.Image_Ribbon_16x16_list_bullets_png));
            stackPanel.Add(NRibbonSplitButton.CreateSmall("Numbering", NResources.Image_Ribbon_16x16_list_numbers_png));
            NRibbonMenuDropDown multilevelListMenu = NRibbonMenuDropDown.CreateSmall("Multilevel List", NResources.Image_Ribbon_16x16_list_multilevel_png);
            multilevelListMenu.Menu.Items.Add(new NMenuItem("Alpha and Numeric"));
            multilevelListMenu.Menu.Items.Add(new NMenuItem("Alpha and Roman"));
            multilevelListMenu.Menu.Items.Add(new NMenuItem("Numeric and Roman"));
            stackPanel.Add(multilevelListMenu);
            stackPanel.Add(new NRibbonSeparator());
            wrapPanel.Add(stackPanel);

            stackPanel = CreateStackPanel();
            stackPanel.Add(NRibbonButton.CreateSmall("Decrease Indent", NResources.Image_Ribbon_16x16_paragraph_indent_left_png));
            stackPanel.Add(NRibbonButton.CreateSmall("Increase Indent", NResources.Image_Ribbon_16x16_paragraph_indent_right_png));
            stackPanel.Add(new NRibbonSeparator());
            wrapPanel.Add(stackPanel);

            stackPanel = CreateStackPanel();
            stackPanel.Add(NRibbonButton.CreateSmall("Sort", NResources.Image_Ribbon_16x16_sort_az_png));
            stackPanel.Add(new NRibbonSeparator());
            stackPanel.Add(NRibbonButton.CreateSmall("Marks", NResources.Image_Ribbon_16x16_paragraph_marker_small_png));
            wrapPanel.Add(stackPanel);

            stackPanel = CreateStackPanel();
            stackPanel.Add(NRibbonToggleButton.CreateSmall("Align Left", NResources.Image_Ribbon_16x16_paragraph_align_left_png));
            stackPanel.Add(NRibbonToggleButton.CreateSmall("Align Center", NResources.Image_Ribbon_16x16_paragraph_align_center_png));
            stackPanel.Add(NRibbonToggleButton.CreateSmall("Align Right", NResources.Image_Ribbon_16x16_paragraph_align_right_png));
            stackPanel.Add(NRibbonToggleButton.CreateSmall("Justify", NResources.Image_Ribbon_16x16_paragraph_align_justified_png));
            stackPanel.Add(new NRibbonSeparator());
            wrapPanel.Add(new NToggleButtonGroup(stackPanel));

            stackPanel = CreateStackPanel();
            NRibbonMenuDropDown lineSpacingMenu = NRibbonMenuDropDown.CreateSmall("Line Spacing", NResources.Image_Ribbon_16x16_paragraph_spacing_before_png);
            lineSpacingMenu.Menu.Items.Add(new NMenuItem("1.0"));
            lineSpacingMenu.Menu.Items.Add(new NMenuItem("1.15"));
            lineSpacingMenu.Menu.Items.Add(new NMenuItem("1.5"));
            lineSpacingMenu.Menu.Items.Add(new NMenuItem("2.0"));
            lineSpacingMenu.Menu.Items.Add(new NMenuItem("3.0"));
            lineSpacingMenu.Menu.Items.Add(new NMenuSeparator());
            lineSpacingMenu.Menu.Items.Add(new NMenuItem("Line Spacing Options..."));
            stackPanel.Add(lineSpacingMenu);
            stackPanel.Add(new NRibbonSeparator());
            wrapPanel.Add(stackPanel);

            fillSplitButton = new NFillSplitButton();
            wrapPanel.Add(fillSplitButton);

            #endregion

            #region Styles Group

            group      = new NRibbonGroup("Styles");
            group.Icon = NResources.Image_Ribbon_16x16_table_design_png;
            page.Groups.Add(group);

            NRibbonGallery gallery = new NRibbonGallery("Table Style", NResources.Image_Ribbon_32x32_table_design_png, new NTableStylePicker());
            gallery.MinimumPopupColumnCount = 7;
            gallery.PopupMenu = new NMenu();
            gallery.PopupMenu.Items.Add(new NMenuSeparator());
            gallery.PopupMenu.Items.Add(new NMenuItem("Modify Table Style..."));
            gallery.PopupMenu.Items.Add(new NMenuItem("New Table Style..."));
            group.Items.Add(gallery);

            #endregion

            return(page);
        }
Exemple #4
0
        private void InitializeComponent()
        {
            /*
             *   Window setup
             * */
            this.Text        = "Dagobar";
            this.Size        = new System.Drawing.Size(16 * windowCoeff, 9 * windowCoeff);
            this.MinimumSize = new System.Drawing.Size(this.Width / 2, this.Height / 2);

            #region "Controls Setup & Layout Setup"
            textBoxSend      = new NTextBox();
            textBoxSend.Font = new Nevron.Nov.Graphics.NFont("Lucidia Console", 12);
            textBoxSend.VerticalPlacement = Nevron.Nov.Layout.ENVerticalPlacement.Center;
            textBoxSend.Margins           = new Nevron.Nov.Graphics.NMargins(1, 3, 0, 3);
            textBoxSend.KeyUp            += textBoxSend_KeyUp;

            buttonSend = new NButton("Envoyer");
            buttonSend.PreferredWidth = 100;
            buttonSend.Content.HorizontalPlacement = Nevron.Nov.Layout.ENHorizontalPlacement.Center;
            buttonSend.Margins = new Nevron.Nov.Graphics.NMargins(3.0);
            buttonSend.Click  += buttonSend_Click;

            panelSend           = new NStackPanel();
            panelSend.Direction = Nevron.Nov.Layout.ENHVDirection.LeftToRight;
            panelSend.FillMode  = Nevron.Nov.Layout.ENStackFillMode.First;
            panelSend.Add(textBoxSend);
            panelSend.Add(buttonSend);

            listBoxChat         = new NListBox();
            listBoxChat.Margins = new Nevron.Nov.Graphics.NMargins(1.0);

            panelChat           = new NStackPanel();
            panelChat.Direction = Nevron.Nov.Layout.ENHVDirection.TopToBottom;
            panelChat.FillMode  = Nevron.Nov.Layout.ENStackFillMode.First;
            panelChat.Add(listBoxChat);
            panelChat.Add(panelSend);

            labelChannel = new NLabel("/--/");
            labelChannel.HorizontalPlacement = Nevron.Nov.Layout.ENHorizontalPlacement.Center;
            labelChannel.Font = new Nevron.Nov.Graphics.NFont("Lucidia Console", 14);

            listBoxUsers         = new NListBox();
            listBoxUsers.Margins = new Nevron.Nov.Graphics.NMargins(1.0);

            panelUsers           = new NStackPanel();
            panelUsers.Direction = Nevron.Nov.Layout.ENHVDirection.TopToBottom;
            panelUsers.FillMode  = Nevron.Nov.Layout.ENStackFillMode.Last;
            panelUsers.Add(labelChannel);
            panelUsers.Add(listBoxUsers);
            panelUsers.PreferredWidth = 150;

            panelTabChat           = new NStackPanel();
            panelTabChat.FillMode  = Nevron.Nov.Layout.ENStackFillMode.First;
            panelTabChat.Direction = Nevron.Nov.Layout.ENHVDirection.LeftToRight;
            panelTabChat.Add(panelChat);
            panelTabChat.Add(panelUsers);

            panelMain           = new NStackPanel();
            panelMain.Direction = Nevron.Nov.Layout.ENHVDirection.LeftToRight;
            panelMain.FillMode  = Nevron.Nov.Layout.ENStackFillMode.Last;
            panelMain.Add(panelTabChat);

            panelRibbonInformations          = new NStackPanel();
            panelRibbonInformations.FillMode = Nevron.Nov.Layout.ENStackFillMode.Equal;

            labelRibbonChannel = new NLabel("Chaîne : /--/");
            labelRibbonChannel.HorizontalPlacement = Nevron.Nov.Layout.ENHorizontalPlacement.Center;
            labelRibbonViewers = new NLabel("Nombre de spectateurs : /--/");
            labelRibbonViewers.HorizontalPlacement = Nevron.Nov.Layout.ENHorizontalPlacement.Center;
            labelRibbonVersion = new NLabel("Version : " + Properties.Settings.Default.Version);
            labelRibbonVersion.HorizontalPlacement = Nevron.Nov.Layout.ENHorizontalPlacement.Center;

            panelRibbonInformations.Add(labelRibbonChannel);
            panelRibbonInformations.Add(labelRibbonViewers);
            panelRibbonInformations.Add(labelRibbonVersion);

            ribbonGroupInformations = new NRibbonGroup("Informations");
            ribbonGroupInformations.Header.DialogLauncherButton.Visibility = ENVisibility.Hidden;
            ribbonGroupInformations.PreferredHeight = 64;
            ribbonGroupInformations.Items.Add(panelRibbonInformations);

            listBoxPlugins                 = new NListBox();
            listBoxPlugins.VScrollMode     = ENScrollMode.Always;
            listBoxPlugins.PreferredHeight = 64;
            listBoxPlugins.PreferredWidth  = 256;

            ribbonGroupPlugins = new NRibbonGroup("Plugins");
            ribbonGroupPlugins.Header.DialogLauncherButton.Visibility = ENVisibility.Hidden;
            ribbonGroupPlugins.Items.Add(listBoxPlugins);

            ribbonButtonConfiguration = new NRibbonButton("Configuration", NImage.FromFile(Application.StartupPath + @"\Resources\settings.png"), NImage.FromFile(Application.StartupPath + @"\Resources\settings.png"));
            ribbonButtonConfiguration.PreferredWidth = 86;
            ribbonButtonConfiguration.Click         += ribbonButtonConfiguration_Click;

            ribbonButtonChannel = new NRibbonButton("Changer de chaîne", NImage.FromFile(Application.StartupPath + @"\Resources\move_shit_around.png"), NImage.FromFile(Application.StartupPath + @"\Resources\move_shit_around.png"));
            ribbonButtonChannel.PreferredWidth = 86;
            ribbonButtonChannel.Click         += ribbonButtonChannel_Click;

            ribbonButtonQuit = new NRibbonButton("Quitter", NImage.FromFile(Application.StartupPath + @"\Resources\quit.png"), NImage.FromFile(Application.StartupPath + @"\Resources\quit.png"));
            ribbonButtonQuit.PreferredWidth = 86;
            ribbonButtonQuit.Click         += ribbonButtonQuit_Click;

            ribbonGroupActions = new NRibbonGroup("Actions");
            ribbonGroupActions.Header.DialogLauncherButton.Visibility = ENVisibility.Hidden;
            ribbonGroupActions.Items.Add(ribbonButtonConfiguration);
            ribbonGroupActions.Items.Add(ribbonButtonChannel);
            ribbonGroupActions.Items.Add(ribbonButtonQuit);

            ribbonTagPageMain = new NRibbonTabPage("Dagobar");
            ribbonTagPageMain.Groups.Add(ribbonGroupInformations);
            ribbonTagPageMain.Groups.Add(ribbonGroupPlugins);
            ribbonTagPageMain.Groups.Add(ribbonGroupActions);

            ribbon = new NRibbon();
            ribbon.Tab.TabPages.Add(ribbonTagPageMain);

            panelRibbon          = new NStackPanel();
            panelRibbon.FillMode = Nevron.Nov.Layout.ENStackFillMode.Last;
            panelRibbon.Add(ribbon);
            panelRibbon.Add(panelMain);
            #endregion

            // Create main control
            controlMain      = new NNovWidgetHost <NStackPanel>(panelRibbon);
            controlMain.Dock = DockStyle.Fill;
        }