Example #1
0
        /// <summary>
        /// Adding items to shape dropdown button
        /// </summary>
        /// <param name="customRibbonItem">Specifies the dropdown items.</param>
        private void PopulateShapeDropDownItems(CustomRibbonItem customRibbonItem)
        {
            CustomDropDownItem firstItem = new CustomDropDownItem()
            {
                Name = "Square", Image = "Images/Square.png"
            };
            CustomDropDownItem secondItem = new CustomDropDownItem()
            {
                Name = "Circle", Image = "Images/Circle.png"
            };
            CustomDropDownItem fourthItem = new CustomDropDownItem()
            {
                Name = "Cylinder", Image = "Images/Cylinder.png"
            };
            CustomDropDownItem thirdItem = new CustomDropDownItem()
            {
                Name = "Rhombus", Image = "Images/Rhombus.png"
            };
            CustomDropDownItem fifthItem = new CustomDropDownItem()
            {
                Name = "Triangle", Image = "Images/Triangle.png"
            };

            customRibbonItem.CustomDropDownItems.Add(firstItem);
            customRibbonItem.CustomDropDownItems.Add(secondItem);
            customRibbonItem.CustomDropDownItems.Add(fourthItem);
            customRibbonItem.CustomDropDownItems.Add(thirdItem);
            customRibbonItem.CustomDropDownItems.Add(fifthItem);
        }
Example #2
0
        /// <summary>
        /// Adding ribbon items to the second ribbon bar(Zoom).
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        private void PopuplateZoomItems(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Zoom", IsLarge = true, Image = "Zoom_32x32.png", Command = ButtonCommand
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "100%", IsLarge = true, Image = "portrait.png", Command = ButtonCommand
            };
            CustomRibbonItem thirdItem = new CustomRibbonItem()
            {
                ItemHeader = "One Page", Image = "Team Email.png", Command = ButtonCommand
            };
            CustomRibbonItem fourthItem = new CustomRibbonItem()
            {
                ItemHeader = "Two Pages", Image = "Reading Pane.png", Command = ButtonCommand
            };
            CustomRibbonItem fifthItem = new CustomRibbonItem()
            {
                ItemHeader = "Page Width", Image = "Reading Pane.png", Command = ButtonCommand
            };

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
            customRibbonBar.CustomRibbonItems.Add(thirdItem);
            customRibbonBar.CustomRibbonItems.Add(fourthItem);
            customRibbonBar.CustomRibbonItems.Add(fifthItem);
        }
Example #3
0
        private void PopulateDesignItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Header Row", IsCheckBox = true, Checked = true
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "Total Row", IsCheckBox = true, Checked = false
            };
            CustomRibbonItem Item3 = new CustomRibbonItem()
            {
                ItemHeader = "Banded Row", IsCheckBox = true, Checked = true
            };
            CustomRibbonItem Item4 = new CustomRibbonItem()
            {
                ItemHeader = "First Column", IsCheckBox = true, Checked = true
            };
            CustomRibbonItem Item5 = new CustomRibbonItem()
            {
                ItemHeader = "Last Column", IsCheckBox = true, Checked = false
            };
            CustomRibbonItem Item6 = new CustomRibbonItem()
            {
                ItemHeader = "Banded Column", IsCheckBox = true, Checked = false
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
            Bar.CustomRibbonItems.Add(Item3);
            Bar.CustomRibbonItems.Add(Item4);
            Bar.CustomRibbonItems.Add(Item5);
            Bar.CustomRibbonItems.Add(Item6);
        }
Example #4
0
        private void PopuplateZoomItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Zoom", IsLarge = true, Image = "Zoom_32x32.png"
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "100%", IsLarge = true, Image = "portrait.png"
            };
            CustomRibbonItem Item3 = new CustomRibbonItem()
            {
                ItemHeader = "One Page", Image = "Team Email.png"
            };
            CustomRibbonItem Item4 = new CustomRibbonItem()
            {
                ItemHeader = "Two Pages", Image = "Reading Pane.png"
            };
            CustomRibbonItem Item5 = new CustomRibbonItem()
            {
                ItemHeader = "Page Width", Image = "Reading Pane.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
            Bar.CustomRibbonItems.Add(Item3);
            Bar.CustomRibbonItems.Add(Item4);
            Bar.CustomRibbonItems.Add(Item5);
        }
Example #5
0
        /// <summary>
        /// populate ribbon items (illustration) to the insert tab.
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        private void PopulateRibbonIllustrationsItems(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Picture", IsLarge = true, Image = "Picture.png", Command = ButtonCommand
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "Comment", IsLarge = true, Image = "0356_NewComment_32.png", Command = ButtonCommand
            };
            CustomRibbonItem thirdItem = new CustomRibbonItem()
            {
                ItemHeader = "Shapes", IsLarge = true, IsDropDownButton = true, Image = "0202_InsertShape_32.png"
            };
            CustomRibbonItem fourthItem = new CustomRibbonItem()
            {
                ItemHeader = "Chart", IsLarge = true, IsDropDownButton = true, Image = "base_charts.png"
            };

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
            customRibbonBar.CustomRibbonItems.Add(thirdItem);
            customRibbonBar.CustomRibbonItems.Add(fourthItem);

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

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
            customRibbonBar.CustomRibbonItems.Add(thirdItem);
            customRibbonBar.CustomRibbonItems.Add(fourthItem);
            customRibbonBar.CustomRibbonItems.Add(fifthItem);
            customRibbonBar.CustomRibbonItems.Add(sixthItem);
        }
Example #7
0
        private void PopulateRibbonTableItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Tables", IsLarge = true, IsDropDownButton = true, Image = "Table_32.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
        }
Example #8
0
        /// <summary>
        /// Adding ribbon tables to the ribbon tab (insert).
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        private void PopulateRibbonTableItems(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Tables", IsLarge = true, IsDropDownButton = true, Image = "Table_32.png", HasTablePicker = true
            };

            customRibbonBar.CustomRibbonItems.Add(firstItem);
        }
Example #9
0
        private void PopulatePrintItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Print", IsLarge = true, Image = "PrintAreaflat.png"
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "Options", IsLarge = true, Image = "View Setting.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
        }
Example #10
0
        /// <summary>
        /// Adding ribbon items to the first ribbon bar(Create items) inside the secondChildRibbon ribbon tabs.
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar</param>
        private void PopulateCreateItems(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Envelopes", IsLarge = true, Image = "Read unread.png", Command = ButtonCommand
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "Labels", IsLarge = true, Image = "Send and recive all folder.png", Command = ButtonCommand
            };

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
        }
Example #11
0
        private void PopulateCreateItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Envelopes", IsLarge = true, Image = "Read unread.png"
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "Labels", IsLarge = true, Image = "Send and recive all folder.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
        }
Example #12
0
        private void PopulateMDIItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "MDI", Image = "MDI_blue.png", Command = MDICommand
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "TDI", Image = "Tabblue.png", Command = TDICommand
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
        }
Example #13
0
        /// <summary>
        /// Adding ribbon items to the first ribbon bar(Print).
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        private void PopulatePrintItems(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Print", IsLarge = true, Image = "PrintAreaflat.png", Command = ButtonCommand
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "Options", IsLarge = true, Image = "View Setting.png", Command = ButtonCommand
            };

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
        }
Example #14
0
        /// <summary>
        /// populate ribbon items(MDI items) to the ribbon bars(Home).
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar</param>
        private void PopulateMDIItems(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "MDI", Image = "MDI_blue.png", Command = MDICommand
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "TDI", Image = "Tabblue.png", Command = TDICommand
            };

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
        }
Example #15
0
        private void PopulateParagraphItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "", Image = "Bullets16.png"
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "", Image = "AlignTextLeft16.png"
            };
            CustomRibbonItem Item3 = new CustomRibbonItem()
            {
                ItemHeader = "", Image = "DecreaseIndent16.png"
            };
            CustomRibbonItem Item4 = new CustomRibbonItem()
            {
                ItemHeader = "", Image = "Numbering16.png"
            };
            CustomRibbonItem Item5 = new CustomRibbonItem()
            {
                ItemHeader = "", Image = "AlignTextCenter16.png"
            };
            CustomRibbonItem Item6 = new CustomRibbonItem()
            {
                ItemHeader = "", Image = "IncreaseIndent16.png"
            };
            CustomRibbonItem Item7 = new CustomRibbonItem()
            {
                ItemHeader = "", Image = "MultilevelList16.png"
            };
            CustomRibbonItem Item8 = new CustomRibbonItem()
            {
                ItemHeader = "", Image = "AlignTextRight16.png"
            };
            CustomRibbonItem Item9 = new CustomRibbonItem()
            {
                ItemHeader = "", Image = "LineSpacing16.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
            Bar.CustomRibbonItems.Add(Item3);
            Bar.CustomRibbonItems.Add(Item4);
            Bar.CustomRibbonItems.Add(Item5);
            Bar.CustomRibbonItems.Add(Item6);
            Bar.CustomRibbonItems.Add(Item7);
            Bar.CustomRibbonItems.Add(Item8);
            Bar.CustomRibbonItems.Add(Item9);
        }
Example #16
0
        /// <summary>
        /// Adding ribbon items to the child(paragraph) ribbon bar.
        /// </summary>
        /// <param name="customRibbonBar">Child ribbon tab.</param>
        private void PopulateParagraphItems(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                Image = "Bullets16.png", Command = ButtonCommand
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                Image = "AlignTextLeft16.png", Command = ButtonCommand
            };
            CustomRibbonItem thirdItem = new CustomRibbonItem()
            {
                Image = "DecreaseIndent16.png", Command = ButtonCommand
            };
            CustomRibbonItem fourthItem = new CustomRibbonItem()
            {
                Image = "Numbering16.png", Command = ButtonCommand
            };
            CustomRibbonItem fifthItem = new CustomRibbonItem()
            {
                Image = "AlignTextCenter16.png", Command = ButtonCommand
            };
            CustomRibbonItem sixthItem = new CustomRibbonItem()
            {
                Image = "IncreaseIndent16.png", Command = ButtonCommand
            };
            CustomRibbonItem seventhItem = new CustomRibbonItem()
            {
                Image = "MultilevelList16.png", Command = ButtonCommand
            };
            CustomRibbonItem eigthItem = new CustomRibbonItem()
            {
                Image = "AlignTextRight16.png", Command = ButtonCommand
            };
            CustomRibbonItem ninthItem = new CustomRibbonItem()
            {
                Image = "LineSpacing16.png", Command = ButtonCommand
            };

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
            customRibbonBar.CustomRibbonItems.Add(thirdItem);
            customRibbonBar.CustomRibbonItems.Add(fourthItem);
            customRibbonBar.CustomRibbonItems.Add(fifthItem);
            customRibbonBar.CustomRibbonItems.Add(sixthItem);
            customRibbonBar.CustomRibbonItems.Add(seventhItem);
            customRibbonBar.CustomRibbonItems.Add(eigthItem);
            customRibbonBar.CustomRibbonItems.Add(ninthItem);
        }
Example #17
0
        /// <summary>
        /// Adding items to chart dropdown button.
        /// </summary>
        /// <param name="customRibbonItem">Specifies the dropdown items.</param>
        private void PopulateChartDropDownItems(CustomRibbonItem customRibbonItem)
        {
            CustomDropDownItem firstItem = new CustomDropDownItem()
            {
                Name = "Horizontal Bar", Image = "Images/Horizontal Barchart_02.png"
            };
            CustomDropDownItem secondItem = new CustomDropDownItem()
            {
                Name = "Vertical Bar", Image = "Images/Vertical Barchart_02.png"
            };
            CustomDropDownItem thirdItem = new CustomDropDownItem()
            {
                Name = "Stack Bar", Image = "Images/Stack Chart - 04.png"
            };
            CustomDropDownItem fourthItem = new CustomDropDownItem()
            {
                Name = "Pie", Image = "Images/Pie-Chart.png"
            };
            CustomDropDownItem fifthItem = new CustomDropDownItem()
            {
                Name = "Graph", Image = "Images/Graph-03.png"
            };
            CustomDropDownItem sixthItem = new CustomDropDownItem()
            {
                Name = "Doughnut", Image = "Images/Chart Doughnut.png"
            };
            CustomDropDownItem seventhItem = new CustomDropDownItem()
            {
                Name = "Radar", Image = "Images/Chart Radar.png"
            };
            CustomDropDownItem eighthItem = new CustomDropDownItem()
            {
                Name = "Bubble", Image = "Images/Chart Bubble.png"
            };

            customRibbonItem.CustomDropDownItems.Add(firstItem);
            customRibbonItem.CustomDropDownItems.Add(secondItem);
            customRibbonItem.CustomDropDownItems.Add(thirdItem);
            customRibbonItem.CustomDropDownItems.Add(fourthItem);
            customRibbonItem.CustomDropDownItems.Add(fifthItem);
            customRibbonItem.CustomDropDownItems.Add(sixthItem);
            customRibbonItem.CustomDropDownItems.Add(seventhItem);
            customRibbonItem.CustomDropDownItems.Add(eighthItem);
        }
Example #18
0
        private void PopulateRibbonLinkItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Hyperlink", IsLarge = true, Image = "Hyperlink32.png"
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "Replace", IsLarge = true, Image = "replace_32.png"
            };
            CustomRibbonItem Item3 = new CustomRibbonItem()
            {
                ItemHeader = "Zoom", IsLarge = true, Image = "Zoom_32x32.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
            Bar.CustomRibbonItems.Add(Item3);
        }
Example #19
0
        private void PopuplateRibbonMailItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Attach File", IsLarge = true, Image = "base_paperclip_32.png", IsSplitButton = true
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "Business card", IsLarge = true, Image = "base_business_contacts.png"
            };
            CustomRibbonItem Item3 = new CustomRibbonItem()
            {
                ItemHeader = "Audio", IsLarge = true, Image = "base_speaker_32.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
            Bar.CustomRibbonItems.Add(Item3);
        }
Example #20
0
        /// <summary>
        /// Populate ribbon items (link items to the insert tab.
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        private void PopulateRibbonLinkItems(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Hyperlink", IsLarge = true, Image = "Hyperlink32.png", Command = ButtonCommand
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "Replace", IsLarge = true, Image = "replace_32.png", Command = ButtonCommand
            };
            CustomRibbonItem thirdItem = new CustomRibbonItem()
            {
                ItemHeader = "Zoom", IsLarge = true, Image = "Zoom_32x32.png", Command = ButtonCommand
            };

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
            customRibbonBar.CustomRibbonItems.Add(thirdItem);
        }
Example #21
0
        /// <summary>
        /// Adding ribbon items to the child(Editing) ribbon bar.
        /// </summary>
        /// <param name="customRibbonBar">Child ribbon tab.</param>
        private void PopulateEditingItems(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Find", Image = "Search.png", Command = ButtonCommand
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "Replace", Image = "replace_32.png", Command = ButtonCommand
            };
            CustomRibbonItem thirdItem = new CustomRibbonItem()
            {
                ItemHeader = "Select", Image = "start2.png", Command = ButtonCommand
            };

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
            customRibbonBar.CustomRibbonItems.Add(thirdItem);
        }
Example #22
0
        private void PopulateEditingItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Find", Image = "Search.png"
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "Replace", Image = "replace_32.png"
            };
            CustomRibbonItem Item3 = new CustomRibbonItem()
            {
                ItemHeader = "Select", Image = "start2.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
            Bar.CustomRibbonItems.Add(Item3);
        }
Example #23
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(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Attach File", IsLarge = true, Image = "base_paperclip_32.png", IsDropDownButton = true
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "Business card", IsLarge = true, Image = "base_business_contacts.png", Command = ButtonCommand
            };
            CustomRibbonItem thirdItem = new CustomRibbonItem()
            {
                ItemHeader = "Audio", IsLarge = true, Image = "base_speaker_32.png", Command = ButtonCommand
            };

            PopulateAttachFileItems(firstItem);

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
            customRibbonBar.CustomRibbonItems.Add(thirdItem);
        }
Example #24
0
        private void PopulateRibbonIllustrationsItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Picture", IsLarge = true, Image = "Picture.png"
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "Comment", IsLarge = true, Image = "0356_NewComment_32.png"
            };
            CustomRibbonItem Item3 = new CustomRibbonItem()
            {
                ItemHeader = "Shapes", IsLarge = true, IsDropDownButton = true, Image = "0202_InsertShape_32.png"
            };
            CustomRibbonItem Item4 = new CustomRibbonItem()
            {
                ItemHeader = "Chart", IsLarge = true, IsDropDownButton = true, Image = "base_charts.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
            Bar.CustomRibbonItems.Add(Item3);
            Bar.CustomRibbonItems.Add(Item4);
        }
Example #25
0
        void PopulateRibbonNewItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Paste", IsLarge = true, Image = "Paste32.png"
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "Cut", Image = "Cut16.png"
            };
            CustomRibbonItem Item3 = new CustomRibbonItem()
            {
                ItemHeader = "Copy", Image = "Copy16.png"
            };
            CustomRibbonItem Item4 = new CustomRibbonItem()
            {
                ItemHeader = "Format Painter", Image = "FormatPainter16.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
            Bar.CustomRibbonItems.Add(Item3);
            Bar.CustomRibbonItems.Add(Item4);
        }
Example #26
0
        /// <summary>
        /// Populate ribbon items (New items) to the ribbon bar(Home).
        /// </summary>
        /// <param name="customRibbonBar">Specifies the ribbon bar.</param>
        void PopulateRibbonNewItems(CustomRibbonBar customRibbonBar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Paste", IsLarge = true, Image = "Paste32.png", Command = ButtonCommand
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "Cut", Image = "Cut16.png", Command = ButtonCommand
            };
            CustomRibbonItem thirdItem = new CustomRibbonItem()
            {
                ItemHeader = "Copy", Image = "Copy16.png", Command = ButtonCommand
            };
            CustomRibbonItem fourthItem = new CustomRibbonItem()
            {
                ItemHeader = "Format Painter", Image = "FormatPainter16.png", Command = ButtonCommand
            };

            customRibbonBar.CustomRibbonItems.Add(firstItem);
            customRibbonBar.CustomRibbonItems.Add(secondItem);
            customRibbonBar.CustomRibbonItems.Add(thirdItem);
            customRibbonBar.CustomRibbonItems.Add(fourthItem);
        }
Example #27
0
        /// <summary>
        /// Adding items to attach file dropdown button
        /// </summary>
        /// <param name="customRibbonItem">Specifies the dropdown items.</param>
        private void PopulateAttachFileItems(CustomRibbonItem customRibbonItem)
        {
            CustomDropDownItem firstItem = new CustomDropDownItem()
            {
                Name = "DOC", Image = "Images/Word1.png"
            };
            CustomDropDownItem secondItem = new CustomDropDownItem()
            {
                Name = "PDF", Image = "Images/PDF.png"
            };
            CustomDropDownItem thirdItem = new CustomDropDownItem()
            {
                Name = "ZIP", Image = "Images/Zip file-02-WF.png"
            };
            CustomDropDownItem fourthItem = new CustomDropDownItem()
            {
                Name = "XLS", Image = "Images/Excel Online.png"
            };

            customRibbonItem.CustomDropDownItems.Add(firstItem);
            customRibbonItem.CustomDropDownItems.Add(secondItem);
            customRibbonItem.CustomDropDownItems.Add(thirdItem);
            customRibbonItem.CustomDropDownItems.Add(fourthItem);
        }