Exemplo n.º 1
0
        /// <summary>
        /// Method which is used to implement the openModelTab command.
        /// </summary>
        /// <param name="parameter">Model tab to be show and close.</param>
        public void ExecuteOpenModelTabCommand(object parameter)
        {
            ModelRibbonTab.Clear();
            ModelRibbonTab printPreviewTab = new ModelRibbonTab()
            {
                TabHeader = "Print Preview"
            };

            PopulateRibbonPrintPreviewBars(printPreviewTab);
            ModelRibbonTab.Add(printPreviewTab);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Adding ribbon tabs to the main ribbon window.
        /// </summary>
        void PopulateRibbonTabs()
        {
            MenuMergingRibbonTab firstTab = new MenuMergingRibbonTab()
            {
                TabHeader = "Home"
            };
            MenuMergingRibbonTab secondTab = new MenuMergingRibbonTab()
            {
                TabHeader = "Insert"
            };

            PopulateRibbonHomeBars(firstTab);
            PopulateRibbonInsertBars(secondTab);
            ModelRibbonTab.Add(firstTab);
            ModelRibbonTab.Add(secondTab);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Method which is used to populate ribbon bar to ribbon tab.
        /// </summary>
        void PopulateRibbonTabs()
        {
            ModelRibbonTab homeTab = new ModelRibbonTab()
            {
                TabHeader = "Home"
            };
            ModelRibbonTab insertTab = new ModelRibbonTab()
            {
                TabHeader = "Insert"
            };

            PopulateRibbonHomeBars(homeTab);
            PopulateRibbonInsertBars(insertTab);
            ModelRibbonTab.Add(homeTab);
            ModelRibbonTab.Add(insertTab);
        }