Example #1
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(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);
        }
Example #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(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);
        }
Example #3
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(ModelTabRibbonBar Bar)
        {
            ModelTabRibbonItem firstItem = new ModelTabRibbonItem()
            {
                ItemHeader = "Print", IsLarge = true, ImageTemplate = CommonResourceDictionary["QuickPrint"] as DataTemplate, Command = RibbonCommand.ButtonCommand
            };

            Bar.ModelTabRibbonItem.Add(firstItem);
        }
Example #4
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(ModelTabRibbonBar Bar)
        {
            ModelTabRibbonItem firstItem = new ModelTabRibbonItem()
            {
                ItemHeader = "Tables", IsLarge = true, IsDropDownButton = true, ImageTemplate = CommonResourceDictionary["Tables"] as DataTemplate, HasTablePicker = true
            };

            Bar.ModelTabRibbonItem.Add(firstItem);
        }
Example #5
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(ModelTabRibbonBar Bar)
        {
            ModelTabRibbonItem firstItem = new ModelTabRibbonItem()
            {
                ItemHeader = "Show ModalTab", IsLarge = true, Command = OpenModelTabCommand, ImageTemplate = CommonResourceDictionary["Copy"] as DataTemplate
            };

            Bar.ModelTabRibbonItem.Add(firstItem);
        }
Example #6
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(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);
        }
Example #7
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 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);
        }
Example #8
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(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);
        }
Example #9
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(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);
        }
Example #10
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(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);
        }
Example #11
0
        /// <summary>
        /// Method which is used to populate items to insert the ribbon bars.
        /// </summary>
        /// <param name="Tab">Specifies the custom ribbon tab.</param>
        private void PopulateRibbonPrintPreviewBars(ModelRibbonTab Tab)
        {
            ModelTabRibbonBar printBar = new ModelTabRibbonBar()
            {
                BarHeader = "Print"
            };
            ModelTabRibbonBar zoomBar = new ModelTabRibbonBar()
            {
                BarHeader = "Zoom"
            };
            ModelTabRibbonBar perviewBar = new ModelTabRibbonBar()
            {
                BarHeader = "Preview"
            };

            PopulateRibbonPrintItems(printBar);
            PopulateRibbonZoomItems(zoomBar);
            PopulateRibbonPreviewItems(perviewBar);
            Tab.ModelTabRibbonBar.Add(printBar);
            Tab.ModelTabRibbonBar.Add(zoomBar);
            Tab.ModelTabRibbonBar.Add(perviewBar);
        }
Example #12
0
        /// <summary>
        /// Method which is used to populate items to insert ribbon bar.
        /// </summary>
        /// <param name="Tab">Specifies the custom ribbon tab.</param>
        void PopulateRibbonInsertBars(ModelRibbonTab Tab)
        {
            ModelTabRibbonBar tableBar = new ModelTabRibbonBar()
            {
                BarHeader = "Table"
            };
            ModelTabRibbonBar illustrationBar = new ModelTabRibbonBar()
            {
                BarHeader = "Illustrations"
            };
            ModelTabRibbonBar linksBar = new ModelTabRibbonBar()
            {
                BarHeader = "Links"
            };

            PopulateRibbonTableItems(tableBar);
            PopulateRibbonIllustrationsItems(illustrationBar);
            PopulateRibbonLinkItems(linksBar);
            Tab.ModelTabRibbonBar.Add(tableBar);
            Tab.ModelTabRibbonBar.Add(illustrationBar);
            Tab.ModelTabRibbonBar.Add(linksBar);
        }
Example #13
0
        /// <summary>
        /// Method which is used to populate child ribbon bars to Home ribbon bar.
        /// </summary>
        /// <param name="homeTab">Specifies the custom ribbon tab.</param>
        void PopulateRibbonHomeBars(ModelRibbonTab homeTab)
        {
            ModelTabRibbonBar clipBoardBar = new ModelTabRibbonBar()
            {
                BarHeader = "Clipboard"
            };
            ModelTabRibbonBar MDIBar = new ModelTabRibbonBar()
            {
                BarHeader = "MDI Styles"
            };
            ModelTabRibbonBar editingBar = new ModelTabRibbonBar()
            {
                BarHeader = "Editing"
            };
            ModelTabRibbonBar paragraphBar = new ModelTabRibbonBar()
            {
                BarHeader = "Create"
            };
            ModelTabRibbonBar mailBar = new ModelTabRibbonBar()
            {
                BarHeader = "Mail"
            };
            ModelTabRibbonBar modalBar = new ModelTabRibbonBar()
            {
                BarHeader = "Modal"
            };

            PopulateRibbonNewItems(clipBoardBar);
            PopulateEditingItems(editingBar);
            PopulateCreateBarItems(paragraphBar);
            PopuplateRibbonMailItems(mailBar);
            PopulateModalItems(modalBar);
            homeTab.ModelTabRibbonBar.Add(clipBoardBar);
            homeTab.ModelTabRibbonBar.Add(editingBar);
            homeTab.ModelTabRibbonBar.Add(paragraphBar);
            homeTab.ModelTabRibbonBar.Add(mailBar);
            homeTab.ModelTabRibbonBar.Add(modalBar);
        }
Example #14
0
        /// <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);
        }