/// <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); }
/// <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); }
/// <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); }