/// <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(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "Zoom", IsLarge = true, ImageTemplate = CommonResourceDictionary["Zoom"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem secondItem = new ModelTabRibbonItem() { ItemHeader = "100%", IsLarge = true, ImageTemplate = CommonResourceDictionary["100%"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem thirdItem = new ModelTabRibbonItem() { ItemHeader = "One Page", ImageTemplate = CommonResourceDictionary["OnePage"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem fourthItem = new ModelTabRibbonItem() { ItemHeader = "Two Pages", ImageTemplate = CommonResourceDictionary["TwoPages"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem fifthItem = new ModelTabRibbonItem() { ItemHeader = "Page Width", ImageTemplate = CommonResourceDictionary["PageWidth"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; Bar.ModelTabRibbonItem.Add(firstItem); Bar.ModelTabRibbonItem.Add(secondItem); Bar.ModelTabRibbonItem.Add(thirdItem); Bar.ModelTabRibbonItem.Add(fourthItem); Bar.ModelTabRibbonItem.Add(fifthItem); }
/// <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(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "Picture", IsLarge = true, ImageTemplate = CommonResourceDictionary["Picture"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem secondItem = new ModelTabRibbonItem() { ItemHeader = "Comment", IsLarge = true, ImageTemplate = CommonResourceDictionary["Comment"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem thirdItem = new ModelTabRibbonItem() { ItemHeader = "Shapes", IsLarge = true, IsDropDownButton = true, ImageTemplate = CommonResourceDictionary["Shapes"] as DataTemplate }; ModelTabRibbonItem fourthItem = new ModelTabRibbonItem() { ItemHeader = "Chart", IsLarge = true, IsDropDownButton = true, ImageTemplate = CommonResourceDictionary["Charts"] as DataTemplate }; Bar.ModelTabRibbonItem.Add(firstItem); Bar.ModelTabRibbonItem.Add(secondItem); Bar.ModelTabRibbonItem.Add(thirdItem); Bar.ModelTabRibbonItem.Add(fourthItem); PopulateShapeDropDownItems(thirdItem); PopulateChartDropDownItems(fourthItem); }
/// <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(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "Print", IsLarge = true, ImageTemplate = CommonResourceDictionary["QuickPrint"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; Bar.ModelTabRibbonItem.Add(firstItem); }
/// <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(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "Tables", IsLarge = true, IsDropDownButton = true, ImageTemplate = CommonResourceDictionary["Tables"] as DataTemplate, HasTablePicker = true }; Bar.ModelTabRibbonItem.Add(firstItem); }
/// <summary> /// Method which is used to populate items to model items. /// </summary> /// <param name="Bar">Specifies the custom ribbon bar.</param> private void PopulateModalItems(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "Show ModalTab", IsLarge = true, Command = OpenModelTabCommand, ImageTemplate = CommonResourceDictionary["Copy"] as DataTemplate }; Bar.ModelTabRibbonItem.Add(firstItem); }
/// <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(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "Hyperlink", IsLarge = true, ImageTemplate = CommonResourceDictionary["HyperLink"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem thirdItem = new ModelTabRibbonItem() { ItemHeader = "Zoom", IsLarge = true, ImageTemplate = CommonResourceDictionary["Zoom"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; Bar.ModelTabRibbonItem.Add(firstItem); Bar.ModelTabRibbonItem.Add(thirdItem); }
/// <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 PopulateCreateBarItems(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "Envelope", IsLarge = true, ImageTemplate = CommonResourceDictionary["Mail"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem secondItem = new ModelTabRibbonItem() { ItemHeader = "Letter", IsLarge = true, ImageTemplate = CommonResourceDictionary["Letter"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; Bar.ModelTabRibbonItem.Add(firstItem); Bar.ModelTabRibbonItem.Add(secondItem); }
/// <summary> /// Adding items to chart dropdown button. /// </summary> /// <param name="customRibbonItem">Specifies the dropdown item.</param> private void PopulateChartDropDownItems(ModelTabRibbonItem customRibbonItem) { ModelTabDropDownItem firstItem = new ModelTabDropDownItem() { Name = "Horizontal Bar", ImageTemplate = CommonResourceDictionary["HorizontalBar"] as DataTemplate }; ModelTabDropDownItem secondItem = new ModelTabDropDownItem() { Name = "Vertical Bar", ImageTemplate = CommonResourceDictionary["VerticalBar"] as DataTemplate }; ModelTabDropDownItem thirdItem = new ModelTabDropDownItem() { Name = "Pie", ImageTemplate = CommonResourceDictionary["Pie"] as DataTemplate }; customRibbonItem.ModelTabDropDownItem.Add(firstItem); customRibbonItem.ModelTabDropDownItem.Add(secondItem); customRibbonItem.ModelTabDropDownItem.Add(thirdItem); }
/// <summary> /// Adding items to shape dropdown button /// </summary> /// <param name="customRibbonItem">Specifies the dropdown item.</param> private void PopulateShapeDropDownItems(ModelTabRibbonItem customRibbonItem) { ModelTabDropDownItem firstItem = new ModelTabDropDownItem() { Name = "Square", ImageTemplate = CommonResourceDictionary["Square"] as DataTemplate }; ModelTabDropDownItem secondItem = new ModelTabDropDownItem() { Name = "Circle", ImageTemplate = CommonResourceDictionary["Circle"] as DataTemplate }; ModelTabDropDownItem thirdItem = new ModelTabDropDownItem() { Name = "Rhombus", ImageTemplate = CommonResourceDictionary["Rhombus"] as DataTemplate }; customRibbonItem.ModelTabDropDownItem.Add(firstItem); customRibbonItem.ModelTabDropDownItem.Add(secondItem); customRibbonItem.ModelTabDropDownItem.Add(thirdItem); }
/// <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(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "One Page", ImageTemplate = CommonResourceDictionary["OnePage"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem secondItem = new ModelTabRibbonItem() { ItemHeader = "Two Pages", ImageTemplate = CommonResourceDictionary["TwoPages"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem thirdItem = new ModelTabRibbonItem() { ItemHeader = "Page Width", ImageTemplate = CommonResourceDictionary["PageWidth"] as DataTemplate, Command = ApplicationCommands.SelectAll }; Bar.ModelTabRibbonItem.Add(firstItem); Bar.ModelTabRibbonItem.Add(secondItem); Bar.ModelTabRibbonItem.Add(thirdItem); }
/// <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(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "Attach File", IsLarge = true, ImageTemplate = CommonResourceDictionary["Attachment"] as DataTemplate, IsDropDownButton = true }; ModelTabRibbonItem secondItem = new ModelTabRibbonItem() { ItemHeader = "Business card", IsLarge = true, ImageTemplate = CommonResourceDictionary["BusinessCard"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem thirdItem = new ModelTabRibbonItem() { ItemHeader = "Audio", IsLarge = true, ImageTemplate = CommonResourceDictionary["Audio"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; Bar.ModelTabRibbonItem.Add(firstItem); Bar.ModelTabRibbonItem.Add(secondItem); Bar.ModelTabRibbonItem.Add(thirdItem); PopulateAttachFileDropDownItems(firstItem); }
/// <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(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "Show Ruler", IsLarge = false, IsCheckBox = true }; ModelTabRibbonItem secondItem = new ModelTabRibbonItem() { ItemHeader = "Show Magnifier", IsLarge = false, IsCheckBox = true }; ModelTabRibbonItem thirdItem = new ModelTabRibbonItem() { ItemHeader = "Shrink on OnePage", IsLarge = false, ImageTemplate = CommonResourceDictionary["PageWidth"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem fourthItem = new ModelTabRibbonItem() { ItemHeader = "Next Page", IsLarge = false, ImageTemplate = CommonResourceDictionary["TwoPages"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem fifthItem = new ModelTabRibbonItem() { ItemHeader = "Previous Page", IsLarge = false, ImageTemplate = CommonResourceDictionary["OnePage"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem sixthItem = new ModelTabRibbonItem() { IsSeparator = true }; ModelTabRibbonItem seventhItem = new ModelTabRibbonItem() { ItemHeader = "Close Print Preview", IsLarge = true, Command = CloseModelTabCommand, ImageTemplate = CommonResourceDictionary["CloseTab"] as DataTemplate }; Bar.ModelTabRibbonItem.Add(firstItem); Bar.ModelTabRibbonItem.Add(secondItem); Bar.ModelTabRibbonItem.Add(thirdItem); Bar.ModelTabRibbonItem.Add(fourthItem); Bar.ModelTabRibbonItem.Add(fifthItem); Bar.ModelTabRibbonItem.Add(sixthItem); Bar.ModelTabRibbonItem.Add(seventhItem); }
/// <summary> /// Adding items to attach file dropdown button. /// </summary> /// <param name="customRibbonItem">Specifies the dropdown item.</param> private void PopulateAttachFileDropDownItems(ModelTabRibbonItem customRibbonItem) { ModelTabDropDownItem firstItem = new ModelTabDropDownItem() { Name = "DOC", ImageTemplate = CommonResourceDictionary["DOC"] as DataTemplate }; ModelTabDropDownItem secondItem = new ModelTabDropDownItem() { Name = "PDF", ImageTemplate = CommonResourceDictionary["PDF"] as DataTemplate }; ModelTabDropDownItem thirdItem = new ModelTabDropDownItem() { Name = "ZIP", ImageTemplate = CommonResourceDictionary["ZIP"] as DataTemplate }; ModelTabDropDownItem fourthItem = new ModelTabDropDownItem() { Name = "XLS", ImageTemplate = CommonResourceDictionary["XLS"] as DataTemplate }; customRibbonItem.ModelTabDropDownItem.Add(firstItem); customRibbonItem.ModelTabDropDownItem.Add(secondItem); customRibbonItem.ModelTabDropDownItem.Add(thirdItem); customRibbonItem.ModelTabDropDownItem.Add(fourthItem); }
/// <summary> /// Method which is used to populate items to home bar. /// </summary> /// <param name="Bar">Specifies the custom ribbon bar.</param> void PopulateRibbonNewItems(ModelTabRibbonBar Bar) { ModelTabRibbonItem firstItem = new ModelTabRibbonItem() { ItemHeader = "Paste", IsLarge = true, ImageTemplate = CommonResourceDictionary["Paste"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem secondItem = new ModelTabRibbonItem() { ItemHeader = "Cut", ImageTemplate = CommonResourceDictionary["Cut"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem thirdItem = new ModelTabRibbonItem() { ItemHeader = "Copy", ImageTemplate = CommonResourceDictionary["Copy"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; ModelTabRibbonItem fourthItem = new ModelTabRibbonItem() { ItemHeader = "Format Painter", ImageTemplate = CommonResourceDictionary["FormatPainter"] as DataTemplate, Command = RibbonCommand.ButtonCommand }; Bar.ModelTabRibbonItem.Add(firstItem); Bar.ModelTabRibbonItem.Add(secondItem); Bar.ModelTabRibbonItem.Add(thirdItem); Bar.ModelTabRibbonItem.Add(fourthItem); }