public static RibbonSimplePadOptionsViewModel Create() { RibbonSimplePadOptionsViewModel options = ViewModelSource.Create(() => new RibbonSimplePadOptionsViewModel()); options.TitleBarVisibility = RibbonTitleBarVisibility.Auto; options.PageCategoryColor = Colors.Orange; options.ToolbarShowMode = RibbonQuickAccessToolbarShowMode.ShowAbove; options.PageCategoryAlignment = RibbonPageCategoryCaptionAlignment.Right; options.RibbonStyle = RibbonStyle.Office2010; return(options); }
private void Initialize() { ClipartImages = new string[] { "/RibbonDemo;component/Images/Clipart/caCompClient.png", "/RibbonDemo;component/Images/Clipart/caCompClientEnabled.png", "/RibbonDemo;component/Images/Clipart/caDatabaseBlue.png", "/RibbonDemo;component/Images/Clipart/caDataBaseDisabled.png", "/RibbonDemo;component/Images/Clipart/caDataBaseGreen.png", "/RibbonDemo;component/Images/Clipart/caDataBaseViolet.png", "/RibbonDemo;component/Images/Clipart/caInet.png", "/RibbonDemo;component/Images/Clipart/caInetSearch.png", "/RibbonDemo;component/Images/Clipart/caModem.png", "/RibbonDemo;component/Images/Clipart/caModemEnabled.png", "/RibbonDemo;component/Images/Clipart/caNetCard.png", "/RibbonDemo;component/Images/Clipart/caNetwork.png", "/RibbonDemo;component/Images/Clipart/caNetworkEnabled.png", "/RibbonDemo;component/Images/Clipart/caServer.png", "/RibbonDemo;component/Images/Clipart/caServerEnabled.png", "/RibbonDemo;component/Images/Clipart/caWebCam.png" }; RecentDocuments = new RecentItemViewModel[] { new RecentItemViewModel("Recent Document 1", @"c:\My Documents\Recent Document 1.rtf", "../../../Images/Icons/new-32x32.png"), new RecentItemViewModel("Recent Document 2", @"c:\My Documents\Recent Document 2.rtf", "../../../Images/Icons/new-32x32.png"), new RecentItemViewModel("Recent Document 3", @"c:\My Documents\Recent Document 3.rtf", "../../../Images/Icons/new-32x32.png"), new RecentItemViewModel("Recent Document 4", @"c:\My Documents\Recent Document 4.rtf", "../../../Images/Icons/new-32x32.png") }; RecentPlaces = new RecentItemViewModel[] { new RecentItemViewModel("Recent place 1", @"c:\My Documents\Recent place 1", "../../../Images/Icons/open-32x32.png"), new RecentItemViewModel("Recent place 2", @"c:\My Documents\Recent place 2", "../../../Images/Icons/open-32x32.png"), new RecentItemViewModel("Recent place 3", @"c:\My Documents\Recent place 3", "../../../Images/Icons/open-32x32.png") }; CurrentOptions = RibbonSimplePadOptionsViewModel.Create(); NewOptions = RibbonSimplePadOptionsViewModel.Create(); ListMarkerStyles = new TextMarkerStyle[] { TextMarkerStyle.None, TextMarkerStyle.Disc, TextMarkerStyle.Circle, TextMarkerStyle.Square, TextMarkerStyle.Box, TextMarkerStyle.LowerRoman, TextMarkerStyle.UpperRoman, TextMarkerStyle.LowerLatin, TextMarkerStyle.UpperLatin, TextMarkerStyle.Decimal }; FontSizes = new Nullable <double>[] { null, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 88, 96, 104, 112, 120, 128, 136, 144 }; ShapeTypes = new InlineImageBorderType[] { InlineImageBorderType.None, InlineImageBorderType.Rectangle, InlineImageBorderType.Circle, InlineImageBorderType.Triangle, InlineImageBorderType.Star, InlineImageBorderType.LeftArrow, InlineImageBorderType.RightArrow, InlineImageBorderType.DownArrow, InlineImageBorderType.UpArrow }; FontFamilies = GetFontFamilies(); BorderWeightArray = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; ImageScaleValueArray = new string[] { "25%", "50%", "75%", "100%", "125%", "150%", "175%", "200%", "250%", "300%", "400%", "500%" }; PageCategoryColors = new Color[] { Colors.Red, Colors.Orange, Colors.Yellow, Colors.Green, Colors.Blue, Color.FromArgb(255, 75, 0, 130), Color.FromArgb(255, 238, 130, 238) }; }