Beispiel #1
0
        /// <summary>
        /// Adding ribbon items to the second ribbon bar(Zoom).
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        private void PopuplateZoomItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Zoom", IsLarge = true, ImageTemplate = CommonResourceDictionary["Zoom"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem secondItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "100%", IsLarge = true, ImageTemplate = CommonResourceDictionary["100%"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem thirdItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "One Page", ImageTemplate = CommonResourceDictionary["OnePage"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem fourthItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Two Pages", ImageTemplate = CommonResourceDictionary["TwoPages"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem fifthItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Page Width", ImageTemplate = CommonResourceDictionary["PageWidth"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };

            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
            customRibbonBar.ModelTabRibbonItem.Add(secondItem);
            customRibbonBar.ModelTabRibbonItem.Add(thirdItem);
            customRibbonBar.ModelTabRibbonItem.Add(fourthItem);
            customRibbonBar.ModelTabRibbonItem.Add(fifthItem);
        }
Beispiel #2
0
        /// <summary>
        /// Adding ribbon design items items to the ribbon bar.
        /// </summary>
        /// <param name="customRibbonBar">Ribbonbar.</param>
        private void PopulateDesignItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Header Row", IsCheckBox = true, Checked = true
            };
            MenuMergingRibbonItem secondItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Total Row", IsCheckBox = true, Checked = false
            };
            MenuMergingRibbonItem thirdItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Banded Row", IsCheckBox = true, Checked = true
            };
            MenuMergingRibbonItem fourthItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "First Column", IsCheckBox = true, Checked = true
            };
            MenuMergingRibbonItem fifthItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Last Column", IsCheckBox = true, Checked = false
            };
            MenuMergingRibbonItem sixthItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Banded Column", IsCheckBox = true, Checked = false
            };

            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
            customRibbonBar.ModelTabRibbonItem.Add(secondItem);
            customRibbonBar.ModelTabRibbonItem.Add(thirdItem);
            customRibbonBar.ModelTabRibbonItem.Add(fourthItem);
            customRibbonBar.ModelTabRibbonItem.Add(fifthItem);
            customRibbonBar.ModelTabRibbonItem.Add(sixthItem);
        }
Beispiel #3
0
        /// <summary>
        /// populate ribbon items (illustration) to the insert tab.
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        private void PopulateRibbonIllustrationsItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Picture", IsLarge = true, ImageTemplate = CommonResourceDictionary["Picture"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem secondItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Comment", IsLarge = true, ImageTemplate = CommonResourceDictionary["Comment"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem thirdItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Shapes", IsLarge = true, IsDropDownButton = true, ImageTemplate = CommonResourceDictionary["Shapes"] as DataTemplate
            };
            MenuMergingRibbonItem fourthItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Chart", IsLarge = true, IsDropDownButton = true, ImageTemplate = CommonResourceDictionary["Charts"] as DataTemplate
            };

            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
            customRibbonBar.ModelTabRibbonItem.Add(secondItem);
            customRibbonBar.ModelTabRibbonItem.Add(thirdItem);
            customRibbonBar.ModelTabRibbonItem.Add(fourthItem);
            PopulateShapeDropDownItems(thirdItem);
            PopulateChartDropDownItems(fourthItem);
        }
Beispiel #4
0
        /// <summary>
        /// Adding ribbon items to the first ribbon bar(Print).
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        private void PopulatePrintItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Print", IsLarge = true, ImageTemplate = CommonResourceDictionary["QuickPrint"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };

            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
        }
Beispiel #5
0
        /// <summary>
        /// Adding ribbon tables to the ribbon tab (insert).
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        private void PopulateRibbonTableItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Tables", IsLarge = true, IsDropDownButton = true, ImageTemplate = CommonResourceDictionary["Tables"] as DataTemplate, HasTablePicker = true
            };

            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
        }
Beispiel #6
0
        /// <summary>
        /// Populating ribbon items to the ribbon bar.
        /// </summary>
        /// <param name="customRibbonTab">Ribbontab.</param>
        private void PopulateDesignBar(MenuMergingRibbonTab customRibbonTab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Table Style Options"
            };

            PopulateDesignItems(firstBar);
            customRibbonTab.CustomFirstChildRibbonBars.Add(firstBar);
        }
Beispiel #7
0
        /// <summary>
        /// Populate ribbon items (link items to the insert tab.
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        private void PopulateRibbonLinkItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Hyperlink", IsLarge = true, ImageTemplate = CommonResourceDictionary["HyperLink"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem thirdItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Zoom", IsLarge = true, ImageTemplate = CommonResourceDictionary["Zoom"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };

            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
            customRibbonBar.ModelTabRibbonItem.Add(thirdItem);
        }
Beispiel #8
0
        /// <summary>
        /// populate ribbon items(MDI items) to the ribbon bars(Home).
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar</param>
        private void PopulateMDIItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "MDI", ImageTemplate = CommonResourceDictionary["TwoPages"] as DataTemplate, Command = MDICommand
            };
            MenuMergingRibbonItem secondItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "TDI", ImageTemplate = CommonResourceDictionary["OnePage"] as DataTemplate, Command = TDICommand
            };

            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
            customRibbonBar.ModelTabRibbonItem.Add(secondItem);
        }
Beispiel #9
0
        /// <summary>
        /// Adding ribbon items to the child(paragraph) ribbon bar.
        /// </summary>
        /// <param name="customRibbonBar">Child ribbon tab.</param>
        private void PopulateCreateBarItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Envelope", IsLarge = true, ImageTemplate = CommonResourceDictionary["Mail"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem secondItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Letter", IsLarge = true, ImageTemplate = CommonResourceDictionary["Letter"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };

            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
            customRibbonBar.ModelTabRibbonItem.Add(secondItem);
        }
Beispiel #10
0
        /// <summary>
        /// Populating child ribbon bar inside the parent bar.
        /// </summary>
        /// <param name="customRibbonTab">Child ribbon tab.</param>
        private void PopulateChildHomeBar(MenuMergingRibbonTab customRibbonTab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Editing"
            };
            MenuMergingRibbonBar secondBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Paragraph"
            };

            PopulateEditingItems(firstBar);
            PopulateCreateBarItems(secondBar);
            customRibbonTab.CustomFirstChildRibbonBars.Add(firstBar);
            customRibbonTab.CustomFirstChildRibbonBars.Add(secondBar);
        }
Beispiel #11
0
        /// <summary>
        /// Adding child ribbon bars to the ribbon tab(Home).
        /// </summary>
        /// <param name="Tab">Specifies the ribbon bar</param>
        void PopulateRibbonHomeBars(MenuMergingRibbonTab Tab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Clipboard"
            };
            MenuMergingRibbonBar secondBar = new MenuMergingRibbonBar()
            {
                BarHeader = "MDI Styles"
            };

            PopulateRibbonNewItems(firstBar);
            PopulateMDIItems(secondBar);
            Tab.ModelTabRibbonBar.Add(firstBar);
            Tab.ModelTabRibbonBar.Add(secondBar);
        }
Beispiel #12
0
        /// <summary>
        /// Allocating ribbon bars to secong ribbon tab inside the child2ribbon tabs.
        /// </summary>
        /// <param name="Tab">Specifies the ribbon tab.</param>
        private void PopulateMailingsBars(MenuMergingRibbonTab Tab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Link"
            };

            PopulateCreateItems(firstBar);
            MenuMergingRibbonBar secondBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Mail"
            };

            PopuplateRibbonMailItems(secondBar);
            Tab.CustomSecondChildRibbonBars.Add(firstBar);
            Tab.CustomSecondChildRibbonBars.Add(secondBar);
        }
Beispiel #13
0
        /// <summary>
        /// Allocating ribbon bars inside the secondChildRibbon ribbon  tab.
        /// </summary>
        /// <param name="Tab">Specifies the ribbon tab.</param>
        private void PopulatePrintBars(MenuMergingRibbonTab Tab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Print"
            };

            PopulatePrintItems(firstBar);
            MenuMergingRibbonBar secondBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Zoom"
            };

            PopuplateZoomItems(secondBar);
            Tab.CustomSecondChildRibbonBars.Add(firstBar);
            Tab.CustomSecondChildRibbonBars.Add(secondBar);
        }
Beispiel #14
0
        /// <summary>
        /// Adding ribbon items to the child(Editing) ribbon bar.
        /// </summary>
        /// <param name="customRibbonBar">Child ribbon tab.</param>
        private void PopulateEditingItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "One Page", ImageTemplate = CommonResourceDictionary["OnePage"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem secondItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Two Pages", ImageTemplate = CommonResourceDictionary["TwoPages"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem thirdItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Page Width", ImageTemplate = CommonResourceDictionary["PageWidth"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };

            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
            customRibbonBar.ModelTabRibbonItem.Add(secondItem);
            customRibbonBar.ModelTabRibbonItem.Add(thirdItem);
        }
Beispiel #15
0
        /// <summary>
        /// Adding ribbon items to the second ribbon bar(Mail items) inside the secondChildRibbon ribbon tabs.
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar</param>
        private void PopuplateRibbonMailItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Attach File", IsLarge = true, ImageTemplate = CommonResourceDictionary["Attachment"] as DataTemplate, IsDropDownButton = true
            };
            MenuMergingRibbonItem secondItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Business card", IsLarge = true, ImageTemplate = CommonResourceDictionary["BusinessCard"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem thirdItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Audio", IsLarge = true, ImageTemplate = CommonResourceDictionary["Audio"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };

            PopulateAttachFileItems(firstItem);
            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
            customRibbonBar.ModelTabRibbonItem.Add(secondItem);
            customRibbonBar.ModelTabRibbonItem.Add(thirdItem);
        }
Beispiel #16
0
        /// <summary>
        /// Adding ribbon bars to the ribbon tab.
        /// </summary>
        /// <param name="Tab">Specifies the ribbon bar.</param>
        void PopulateRibbonInsertBars(MenuMergingRibbonTab Tab)
        {
            MenuMergingRibbonBar firstBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Table"
            };
            MenuMergingRibbonBar secondBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Illustrations"
            };
            MenuMergingRibbonBar thirdBar = new MenuMergingRibbonBar()
            {
                BarHeader = "Links"
            };

            PopulateRibbonTableItems(firstBar);
            PopulateRibbonIllustrationsItems(secondBar);
            PopulateRibbonLinkItems(thirdBar);
            Tab.ModelTabRibbonBar.Add(firstBar);
            Tab.ModelTabRibbonBar.Add(secondBar);
            Tab.ModelTabRibbonBar.Add(thirdBar);
        }
Beispiel #17
0
        /// <summary>
        /// Populate ribbon items (New items) to the ribbon bar(Home).
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        void PopulateRibbonNewItems(MenuMergingRibbonBar customRibbonBar)
        {
            MenuMergingRibbonItem firstItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Paste", IsLarge = true, ImageTemplate = CommonResourceDictionary["Paste"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem secondItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Cut", ImageTemplate = CommonResourceDictionary["Cut"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem thirdItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Copy", ImageTemplate = CommonResourceDictionary["Copy"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };
            MenuMergingRibbonItem fourthItem = new MenuMergingRibbonItem()
            {
                ItemHeader = "Format Painter", ImageTemplate = CommonResourceDictionary["FormatPainter"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };

            customRibbonBar.ModelTabRibbonItem.Add(firstItem);
            customRibbonBar.ModelTabRibbonItem.Add(secondItem);
            customRibbonBar.ModelTabRibbonItem.Add(thirdItem);
            customRibbonBar.ModelTabRibbonItem.Add(fourthItem);
        }