Example #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);
        }
Example #2
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);
        }
Example #3
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);
        }
Example #4
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);
        }
Example #5
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);
        }
Example #6
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);
        }
Example #7
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);
        }
Example #8
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);
        }
Example #9
0
        /// <summary>
        /// Adding items to chart dropdown button.
        /// </summary>
        /// <param name="customRibbonItem">Specifies the dropdown items.</param>
        private void PopulateChartDropDownItems(MenuMergingRibbonItem customRibbonItem)
        {
            MenuMergingDropDownItem firstItem = new MenuMergingDropDownItem()
            {
                Name = "Horizontal Bar", ImageTemplate = CommonResourceDictionary["HorizontalBar"] as DataTemplate
            };
            MenuMergingDropDownItem secondItem = new MenuMergingDropDownItem()
            {
                Name = "Vertical Bar", ImageTemplate = CommonResourceDictionary["VerticalBar"] as DataTemplate
            };
            MenuMergingDropDownItem thirdItem = new MenuMergingDropDownItem()
            {
                Name = "Pie", ImageTemplate = CommonResourceDictionary["Pie"] as DataTemplate
            };

            customRibbonItem.ModelTabDropDownItem.Add(firstItem);
            customRibbonItem.ModelTabDropDownItem.Add(secondItem);
            customRibbonItem.ModelTabDropDownItem.Add(thirdItem);
        }
Example #10
0
        /// <summary>
        /// Adding items to shape dropdown button
        /// </summary>
        /// <param name="customRibbonItem">Specifies the dropdown items.</param>
        private void PopulateShapeDropDownItems(MenuMergingRibbonItem customRibbonItem)
        {
            MenuMergingDropDownItem firstItem = new MenuMergingDropDownItem()
            {
                Name = "Square", ImageTemplate = CommonResourceDictionary["Square"] as DataTemplate
            };
            MenuMergingDropDownItem secondItem = new MenuMergingDropDownItem()
            {
                Name = "Circle", ImageTemplate = CommonResourceDictionary["Circle"] as DataTemplate
            };
            MenuMergingDropDownItem thirdItem = new MenuMergingDropDownItem()
            {
                Name = "Rhombus", ImageTemplate = CommonResourceDictionary["Rhombus"] as DataTemplate
            };

            customRibbonItem.ModelTabDropDownItem.Add(firstItem);
            customRibbonItem.ModelTabDropDownItem.Add(secondItem);
            customRibbonItem.ModelTabDropDownItem.Add(thirdItem);
        }
Example #11
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);
        }
Example #12
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);
        }
Example #13
0
        /// <summary>
        /// Adding items to attach file dropdown button
        /// </summary>
        /// <param name="customRibbonItem">Specifies the dropdown items.</param>
        private void PopulateAttachFileItems(MenuMergingRibbonItem customRibbonItem)
        {
            MenuMergingDropDownItem firstItem = new MenuMergingDropDownItem()
            {
                Name = "DOC", ImageTemplate = CommonResourceDictionary["DOC"] as DataTemplate
            };
            MenuMergingDropDownItem secondItem = new MenuMergingDropDownItem()
            {
                Name = "PDF", ImageTemplate = CommonResourceDictionary["PDF"] as DataTemplate
            };
            MenuMergingDropDownItem thirdItem = new MenuMergingDropDownItem()
            {
                Name = "ZIP", ImageTemplate = CommonResourceDictionary["ZIP"] as DataTemplate
            };
            MenuMergingDropDownItem fourthItem = new MenuMergingDropDownItem()
            {
                Name = "XLS", ImageTemplate = CommonResourceDictionary["XLS"] as DataTemplate
            };

            customRibbonItem.ModelTabDropDownItem.Add(firstItem);
            customRibbonItem.ModelTabDropDownItem.Add(secondItem);
            customRibbonItem.ModelTabDropDownItem.Add(thirdItem);
            customRibbonItem.ModelTabDropDownItem.Add(fourthItem);
        }
Example #14
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);
        }