Exemplo n.º 1
0
        /// <summary>
        /// Adding items to shape dropdown button
        /// </summary>
        /// <param name="customRibbonItem">Specifies the dropdown item.</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);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Method which is used to populate items to zoom ribbon bar.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar</param>
        private void PopulateRibbonZoomItems(CustomRibbonBar Bar)
        {
            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", IsLarge = false, Image = "Team Email.png", Command = ButtonCommand
            };
            CustomRibbonItem fourthItem = new CustomRibbonItem()
            {
                ItemHeader = "Two Pages", IsLarge = false, Image = "Reading Pane.png", Command = ButtonCommand
            };
            CustomRibbonItem fifthItem = new CustomRibbonItem()
            {
                ItemHeader = "Page Width", IsLarge = false, Image = "Reading Pane.png", Command = ButtonCommand
            };

            Bar.CustomRibbonItems.Add(firstItem);
            Bar.CustomRibbonItems.Add(secondItem);
            Bar.CustomRibbonItems.Add(thirdItem);
            Bar.CustomRibbonItems.Add(fourthItem);
            Bar.CustomRibbonItems.Add(fifthItem);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Method which is used to populate items to illustrations ribbon bar.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar.</param>
        private void PopulateRibbonIllustrationsItems(CustomRibbonBar Bar)
        {
            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"
            };

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

            PopulateShapeDropDownItems(thirdItem);
            PopulateChartDropDownItems(fourthItem);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Method which is used to populate items to zoom ribbon bar.
        /// </summary>
        /// <param name="Bar"></param>
        private void PopulateRibbonZoomItems(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", IsLarge = false, Image = "Team Email.png"
            };
            CustomRibbonItem Item4 = new CustomRibbonItem()
            {
                ItemHeader = "Two Pages", IsLarge = false, Image = "Reading Pane.png"
            };
            CustomRibbonItem Item5 = new CustomRibbonItem()
            {
                ItemHeader = "Page Width", IsLarge = false, Image = "Reading Pane.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
            Bar.CustomRibbonItems.Add(Item2);
            Bar.CustomRibbonItems.Add(Item3);
            Bar.CustomRibbonItems.Add(Item4);
            Bar.CustomRibbonItems.Add(Item5);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Method which is used to populate items to model items.
        /// </summary>
        /// <param name="Bar">Ribbon bar.</param>
        private void PopulateModalItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Show ModalTab", IsLarge = true, Command = ModalCommand, Image = "modal.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Method which is used to populate items to table ribbon bar.
        /// </summary>
        /// <param name="Bar">Ribbon bar.</param>
        private void PopulateRibbonTableItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Tables", IsLarge = true, IsDropDownButton = true, Image = "Table_32.png"
            };

            Bar.CustomRibbonItems.Add(Item1);
        }
Exemplo n.º 7
0
        /// <summary>
        /// Method which is used to populate items to table ribbon bar.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar.</param>
        private void PopulateRibbonTableItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Tables", IsLarge = true, IsDropDownButton = true, Image = "Table_32.png", HasTablePicker = true
            };

            Bar.CustomRibbonItems.Add(firstItem);
        }
Exemplo n.º 8
0
        /// <summary>
        /// Method which is used to populate items to model items.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar.</param>
        private void PopulateModalItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Show ModalTab", IsLarge = true, Command = OpenModelTabCommand, Image = "modal.png"
            };

            Bar.CustomRibbonItems.Add(firstItem);
        }
Exemplo n.º 9
0
        /// <summary>
        /// Method which is used to populate items to print ribbon bar.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar.</param>
        private void PopulateRibbonPrintItems(CustomRibbonBar Bar)
        {
            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
            };

            Bar.CustomRibbonItems.Add(firstItem);
            Bar.CustomRibbonItems.Add(secondItem);
        }
Exemplo n.º 10
0
        /// <summary>
        /// Method which is used to populate items to print ribbon bar.
        /// </summary>
        /// <param name="Bar"></param>
        private void PopulateRibbonPrintItems(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);
        }
Exemplo n.º 11
0
        /// <summary>
        /// Method which is used to populate items to the paragraph ribbon bar.
        /// </summary>
        /// <param name="Bar">Ribbon bar.</param>
        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);
        }
Exemplo n.º 12
0
        /// <summary>
        /// Method which is used to populate items to the paragraph ribbon bar.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar.</param>
        private void PopulateParagraphItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                Image = "Bullets16.png", Command = EditingCommands.ToggleBullets
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                Image = "AlignTextLeft16.png", Command = EditingCommands.AlignLeft
            };
            CustomRibbonItem thirdItem = new CustomRibbonItem()
            {
                Image = "DecreaseIndent16.png", Command = EditingCommands.DecreaseIndentation
            };
            CustomRibbonItem fourthItem = new CustomRibbonItem()
            {
                Image = "Numbering16.png", Command = EditingCommands.ToggleNumbering
            };
            CustomRibbonItem fifthItem = new CustomRibbonItem()
            {
                Image = "AlignTextCenter16.png", Command = EditingCommands.AlignCenter
            };
            CustomRibbonItem sixthItem = new CustomRibbonItem()
            {
                Image = "IncreaseIndent16.png", Command = EditingCommands.IncreaseIndentation
            };
            CustomRibbonItem seventhItem = new CustomRibbonItem()
            {
                Image = "MultilevelList16.png", Command = ButtonCommand
            };
            CustomRibbonItem eighthItem = new CustomRibbonItem()
            {
                Image = "AlignTextRight16.png", Command = EditingCommands.AlignRight
            };
            CustomRibbonItem ninthItem = new CustomRibbonItem()
            {
                Image = "LineSpacing16.png", Command = ButtonCommand
            };

            Bar.CustomRibbonItems.Add(firstItem);
            Bar.CustomRibbonItems.Add(secondItem);
            Bar.CustomRibbonItems.Add(thirdItem);
            Bar.CustomRibbonItems.Add(fourthItem);
            Bar.CustomRibbonItems.Add(fifthItem);
            Bar.CustomRibbonItems.Add(sixthItem);
            Bar.CustomRibbonItems.Add(seventhItem);
            Bar.CustomRibbonItems.Add(eighthItem);
            Bar.CustomRibbonItems.Add(ninthItem);
        }
Exemplo n.º 13
0
        /// <summary>
        /// Adding items to chart dropdown button.
        /// </summary>
        /// <param name="customRibbonItem">Specifies the dropdown item.</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);
        }
Exemplo n.º 14
0
        /// <summary>
        /// Method which is used to populate items to the editing ribbon bar.
        /// </summary>
        /// <param name="Bar"></param>
        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);
        }
Exemplo n.º 15
0
        /// <summary>
        /// Method which is used to populate items to link ribbon bar.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar.</param>
        private void PopulateRibbonLinkItems(CustomRibbonBar Bar)
        {
            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
            };

            Bar.CustomRibbonItems.Add(firstItem);
            Bar.CustomRibbonItems.Add(secondItem);
            Bar.CustomRibbonItems.Add(thirdItem);
        }
Exemplo n.º 16
0
        /// <summary>
        /// Method which is used to populate items to mail ribbon bar.
        /// </summary>
        /// <param name="Bar">Ribbon bar.</param>
        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);
        }
Exemplo n.º 17
0
        /// <summary>
        /// Method which is used to populate items to the editing ribbon bar.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar.</param>
        private void PopulateEditingItems(CustomRibbonBar Bar)
        {
            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 = ApplicationCommands.SelectAll
            };

            Bar.CustomRibbonItems.Add(firstItem);
            Bar.CustomRibbonItems.Add(secondItem);
            Bar.CustomRibbonItems.Add(thirdItem);
        }
Exemplo n.º 18
0
        /// <summary>
        /// Method which is used to populate items to link ribbon bar.
        /// </summary>
        /// <param name="Bar">Ribbon bar.</param>
        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);
        }
Exemplo n.º 19
0
        /// <summary>
        /// Method which is used to populate items to mail ribbon bar.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar.</param>
        private void PopuplateRibbonMailItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Attach File", IsLarge = true, Image = "base_paperclip_32.png", IsSplitButton = 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
            };

            Bar.CustomRibbonItems.Add(firstItem);
            Bar.CustomRibbonItems.Add(secondItem);
            Bar.CustomRibbonItems.Add(thirdItem);

            PopulateAttachFileDropDownItems(firstItem);
        }
Exemplo n.º 20
0
        /// <summary>
        /// Method which is used to populate items to preview ribbon bar.
        /// </summary>
        /// <param name="Bar"></param>
        private void PopulateRibbonPreviewItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem Item1 = new CustomRibbonItem()
            {
                ItemHeader = "Show Ruler", IsLarge = false, IsCheckBox = true
            };
            CustomRibbonItem Item2 = new CustomRibbonItem()
            {
                ItemHeader = "Magnifier", IsLarge = false, IsCheckBox = true
            };
            CustomRibbonItem Item3 = new CustomRibbonItem()
            {
                ItemHeader = "Shrink on OnePage", IsLarge = false, Image = "Object16.png"
            };
            CustomRibbonItem Item4 = new CustomRibbonItem()
            {
                ItemHeader = "Next Page", IsLarge = false, Image = "nextpage.png"
            };
            CustomRibbonItem Item5 = new CustomRibbonItem()
            {
                ItemHeader = "Previous Page", IsLarge = false, Image = "previouspage.png"
            };
            CustomRibbonItem Item6 = new CustomRibbonItem()
            {
                IsSeparator = true
            };
            CustomRibbonItem Item7 = new CustomRibbonItem()
            {
                ItemHeader = "Close Print Preview", IsLarge = true, Command = CloseModalCommand, Image = "CloseTab32.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);
        }
Exemplo n.º 21
0
        /// <summary>
        /// Method which is used to populate items to preview ribbon bar.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar.</param>
        private void PopulateRibbonPreviewItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Show Ruler", IsLarge = false, IsCheckBox = true
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "Show Magnifier", IsLarge = false, IsCheckBox = true
            };
            CustomRibbonItem thirdItem = new CustomRibbonItem()
            {
                ItemHeader = "Shrink on OnePage", IsLarge = false, Image = "Object16.png", Command = ButtonCommand
            };
            CustomRibbonItem fourthItem = new CustomRibbonItem()
            {
                ItemHeader = "Next Page", IsLarge = false, Image = "nextpage.png", Command = ButtonCommand
            };
            CustomRibbonItem fifthItem = new CustomRibbonItem()
            {
                ItemHeader = "Previous Page", IsLarge = false, Image = "previouspage.png", Command = ButtonCommand
            };
            CustomRibbonItem sixthItem = new CustomRibbonItem()
            {
                IsSeparator = true
            };
            CustomRibbonItem seventhItem = new CustomRibbonItem()
            {
                ItemHeader = "Close Print Preview", IsLarge = true, Command = CloseModelTabCommand, Image = "CloseTab32.png"
            };

            Bar.CustomRibbonItems.Add(firstItem);
            Bar.CustomRibbonItems.Add(secondItem);
            Bar.CustomRibbonItems.Add(thirdItem);
            Bar.CustomRibbonItems.Add(fourthItem);
            Bar.CustomRibbonItems.Add(fifthItem);
            Bar.CustomRibbonItems.Add(sixthItem);
            Bar.CustomRibbonItems.Add(seventhItem);
        }
Exemplo n.º 22
0
        /// <summary>
        /// Method which is used to populate items to home bar.
        /// </summary>
        /// <param name="Bar">Specifies the custom ribbon bar.</param>
        void PopulateRibbonNewItems(CustomRibbonBar Bar)
        {
            CustomRibbonItem firstItem = new CustomRibbonItem()
            {
                ItemHeader = "Paste", IsLarge = true, Image = "Paste32.png", Command = ApplicationCommands.Paste
            };
            CustomRibbonItem secondItem = new CustomRibbonItem()
            {
                ItemHeader = "Cut", Image = "Cut16.png", Command = ApplicationCommands.Cut
            };
            CustomRibbonItem thirdItem = new CustomRibbonItem()
            {
                ItemHeader = "Copy", Image = "Copy16.png", Command = ApplicationCommands.Copy
            };
            CustomRibbonItem fourthItem = new CustomRibbonItem()
            {
                ItemHeader = "Format Painter", Image = "FormatPainter16.png", Command = ButtonCommand
            };

            Bar.CustomRibbonItems.Add(firstItem);
            Bar.CustomRibbonItems.Add(secondItem);
            Bar.CustomRibbonItems.Add(thirdItem);
            Bar.CustomRibbonItems.Add(fourthItem);
        }
Exemplo n.º 23
0
        /// <summary>
        /// Method which is used to populate items to illustrations ribbon bar.
        /// </summary>
        /// <param name="Bar">Ribbon bar.</param>
        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);
        }
Exemplo n.º 24
0
        /// <summary>
        /// Method which is used to populate items to home bar.
        /// </summary>
        /// <param name="Bar">Ribbon bar.</param>
        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);
        }
Exemplo n.º 25
0
        /// <summary>
        /// Adding items to attach file dropdown button.
        /// </summary>
        /// <param name="customRibbonItem">Specifies the dropdown item.</param>
        private void PopulateAttachFileDropDownItems(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);
        }