439 references to KnownColor
PresentationCore (439)
System\Windows\Media\brushes.cs (141)
42return KnownColors.SolidColorBrushFromUint((uint)KnownColor.AliceBlue); 53return KnownColors.SolidColorBrushFromUint((uint)KnownColor.AntiqueWhite); 64return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Aqua); 75return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Aquamarine); 86return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Azure); 97return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Beige); 108return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Bisque); 119return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Black); 130return KnownColors.SolidColorBrushFromUint((uint)KnownColor.BlanchedAlmond); 141return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Blue); 152return KnownColors.SolidColorBrushFromUint((uint)KnownColor.BlueViolet); 163return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Brown); 174return KnownColors.SolidColorBrushFromUint((uint)KnownColor.BurlyWood); 185return KnownColors.SolidColorBrushFromUint((uint)KnownColor.CadetBlue); 196return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Chartreuse); 207return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Chocolate); 218return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Coral); 229return KnownColors.SolidColorBrushFromUint((uint)KnownColor.CornflowerBlue); 240return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Cornsilk); 251return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Crimson); 262return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Cyan); 273return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkBlue); 284return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkCyan); 295return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkGoldenrod); 306return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkGray); 317return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkGreen); 328return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkKhaki); 339return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkMagenta); 350return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkOliveGreen); 361return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkOrange); 372return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkOrchid); 383return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkRed); 394return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkSalmon); 405return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkSeaGreen); 416return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkSlateBlue); 427return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkSlateGray); 438return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkTurquoise); 449return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkViolet); 460return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DeepPink); 471return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DeepSkyBlue); 482return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DimGray); 493return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DodgerBlue); 504return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Firebrick); 515return KnownColors.SolidColorBrushFromUint((uint)KnownColor.FloralWhite); 526return KnownColors.SolidColorBrushFromUint((uint)KnownColor.ForestGreen); 537return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Fuchsia); 548return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Gainsboro); 559return KnownColors.SolidColorBrushFromUint((uint)KnownColor.GhostWhite); 570return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Gold); 581return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Goldenrod); 592return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Gray); 603return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Green); 614return KnownColors.SolidColorBrushFromUint((uint)KnownColor.GreenYellow); 625return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Honeydew); 636return KnownColors.SolidColorBrushFromUint((uint)KnownColor.HotPink); 647return KnownColors.SolidColorBrushFromUint((uint)KnownColor.IndianRed); 658return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Indigo); 669return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Ivory); 680return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Khaki); 691return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Lavender); 702return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LavenderBlush); 713return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LawnGreen); 724return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LemonChiffon); 735return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightBlue); 746return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightCoral); 757return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightCyan); 768return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightGoldenrodYellow); 779return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightGray); 790return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightGreen); 801return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightPink); 812return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightSalmon); 823return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightSeaGreen); 834return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightSkyBlue); 845return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightSlateGray); 856return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightSteelBlue); 867return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightYellow); 878return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Lime); 889return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LimeGreen); 900return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Linen); 911return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Magenta); 922return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Maroon); 933return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumAquamarine); 944return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumBlue); 955return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumOrchid); 966return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumPurple); 977return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumSeaGreen); 988return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumSlateBlue); 999return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumSpringGreen); 1010return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumTurquoise); 1021return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumVioletRed); 1032return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MidnightBlue); 1043return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MintCream); 1054return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MistyRose); 1065return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Moccasin); 1076return KnownColors.SolidColorBrushFromUint((uint)KnownColor.NavajoWhite); 1087return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Navy); 1098return KnownColors.SolidColorBrushFromUint((uint)KnownColor.OldLace); 1109return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Olive); 1120return KnownColors.SolidColorBrushFromUint((uint)KnownColor.OliveDrab); 1131return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Orange); 1142return KnownColors.SolidColorBrushFromUint((uint)KnownColor.OrangeRed); 1153return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Orchid); 1164return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PaleGoldenrod); 1175return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PaleGreen); 1186return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PaleTurquoise); 1197return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PaleVioletRed); 1208return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PapayaWhip); 1219return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PeachPuff); 1230return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Peru); 1241return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Pink); 1252return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Plum); 1263return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PowderBlue); 1274return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Purple); 1285return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Red); 1296return KnownColors.SolidColorBrushFromUint((uint)KnownColor.RosyBrown); 1307return KnownColors.SolidColorBrushFromUint((uint)KnownColor.RoyalBlue); 1318return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SaddleBrown); 1329return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Salmon); 1340return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SandyBrown); 1351return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SeaGreen); 1362return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SeaShell); 1373return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Sienna); 1384return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Silver); 1395return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SkyBlue); 1406return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SlateBlue); 1417return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SlateGray); 1428return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Snow); 1439return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SpringGreen); 1450return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SteelBlue); 1461return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Tan); 1472return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Teal); 1483return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Thistle); 1494return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Tomato); 1505return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Transparent); 1516return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Turquoise); 1527return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Violet); 1538return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Wheat); 1549return KnownColors.SolidColorBrushFromUint((uint)KnownColor.White); 1560return KnownColors.SolidColorBrushFromUint((uint)KnownColor.WhiteSmoke); 1571return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Yellow); 1582return KnownColors.SolidColorBrushFromUint((uint)KnownColor.YellowGreen);
System\Windows\Media\Knowncolors.cs (294)
175KnownColor[] knownColorValues = Enum.GetValues<KnownColor>(); 176foreach (KnownColor colorValue in knownColorValues) 188KnownColor result = ColorStringToKnownColor(s); 191if (result != KnownColor.UnknownColor) 281internal static KnownColor ColorStringToKnownColor(string colorString) 294if (colorUpper.Equals("RED")) return KnownColor.Red; 295if (colorUpper.Equals("TAN")) return KnownColor.Tan; 301if (colorUpper.Equals("AQUA")) return KnownColor.Aqua; 304if (colorUpper.Equals("BLUE")) return KnownColor.Blue; 307if (colorUpper.Equals("CYAN")) return KnownColor.Cyan; 310if (colorUpper.Equals("GOLD")) return KnownColor.Gold; 311if (colorUpper.Equals("GRAY")) return KnownColor.Gray; 314if (colorUpper.Equals("LIME")) return KnownColor.Lime; 317if (colorUpper.Equals("NAVY")) return KnownColor.Navy; 320if (colorUpper.Equals("PERU")) return KnownColor.Peru; 321if (colorUpper.Equals("PINK")) return KnownColor.Pink; 322if (colorUpper.Equals("PLUM")) return KnownColor.Plum; 325if (colorUpper.Equals("SNOW")) return KnownColor.Snow; 328if (colorUpper.Equals("TEAL")) return KnownColor.Teal; 336if (colorUpper.Equals("AZURE")) return KnownColor.Azure; 339if (colorUpper.Equals("BEIGE")) return KnownColor.Beige; 340if (colorUpper.Equals("BLACK")) return KnownColor.Black; 341if (colorUpper.Equals("BROWN")) return KnownColor.Brown; 344if (colorUpper.Equals("CORAL")) return KnownColor.Coral; 347if (colorUpper.Equals("GREEN")) return KnownColor.Green; 350if (colorUpper.Equals("IVORY")) return KnownColor.Ivory; 353if (colorUpper.Equals("KHAKI")) return KnownColor.Khaki; 356if (colorUpper.Equals("LINEN")) return KnownColor.Linen; 359if (colorUpper.Equals("OLIVE")) return KnownColor.Olive; 362if (colorUpper.Equals("WHEAT")) return KnownColor.Wheat; 363if (colorUpper.Equals("WHITE")) return KnownColor.White; 371if (colorUpper.Equals("BISQUE")) return KnownColor.Bisque; 374if (colorUpper.Equals("INDIGO")) return KnownColor.Indigo; 377if (colorUpper.Equals("MAROON")) return KnownColor.Maroon; 380if (colorUpper.Equals("ORANGE")) return KnownColor.Orange; 381if (colorUpper.Equals("ORCHID")) return KnownColor.Orchid; 384if (colorUpper.Equals("PURPLE")) return KnownColor.Purple; 387if (colorUpper.Equals("SALMON")) return KnownColor.Salmon; 388if (colorUpper.Equals("SIENNA")) return KnownColor.Sienna; 389if (colorUpper.Equals("SILVER")) return KnownColor.Silver; 392if (colorUpper.Equals("TOMATO")) return KnownColor.Tomato; 395if (colorUpper.Equals("VIOLET")) return KnownColor.Violet; 398if (colorUpper.Equals("YELLOW")) return KnownColor.Yellow; 406if (colorUpper.Equals("CRIMSON")) return KnownColor.Crimson; 409if (colorUpper.Equals("DARKRED")) return KnownColor.DarkRed; 410if (colorUpper.Equals("DIMGRAY")) return KnownColor.DimGray; 413if (colorUpper.Equals("FUCHSIA")) return KnownColor.Fuchsia; 416if (colorUpper.Equals("HOTPINK")) return KnownColor.HotPink; 419if (colorUpper.Equals("MAGENTA")) return KnownColor.Magenta; 422if (colorUpper.Equals("OLDLACE")) return KnownColor.OldLace; 425if (colorUpper.Equals("SKYBLUE")) return KnownColor.SkyBlue; 428if (colorUpper.Equals("THISTLE")) return KnownColor.Thistle; 436if (colorUpper.Equals("CORNSILK")) return KnownColor.Cornsilk; 439if (colorUpper.Equals("DARKBLUE")) return KnownColor.DarkBlue; 440if (colorUpper.Equals("DARKCYAN")) return KnownColor.DarkCyan; 441if (colorUpper.Equals("DARKGRAY")) return KnownColor.DarkGray; 442if (colorUpper.Equals("DEEPPINK")) return KnownColor.DeepPink; 445if (colorUpper.Equals("HONEYDEW")) return KnownColor.Honeydew; 448if (colorUpper.Equals("LAVENDER")) return KnownColor.Lavender; 451if (colorUpper.Equals("MOCCASIN")) return KnownColor.Moccasin; 454if (colorUpper.Equals("SEAGREEN")) return KnownColor.SeaGreen; 455if (colorUpper.Equals("SEASHELL")) return KnownColor.SeaShell; 463if (colorUpper.Equals("ALICEBLUE")) return KnownColor.AliceBlue; 466if (colorUpper.Equals("BURLYWOOD")) return KnownColor.BurlyWood; 469if (colorUpper.Equals("CADETBLUE")) return KnownColor.CadetBlue; 470if (colorUpper.Equals("CHOCOLATE")) return KnownColor.Chocolate; 473if (colorUpper.Equals("DARKGREEN")) return KnownColor.DarkGreen; 474if (colorUpper.Equals("DARKKHAKI")) return KnownColor.DarkKhaki; 477if (colorUpper.Equals("FIREBRICK")) return KnownColor.Firebrick; 480if (colorUpper.Equals("GAINSBORO")) return KnownColor.Gainsboro; 481if (colorUpper.Equals("GOLDENROD")) return KnownColor.Goldenrod; 484if (colorUpper.Equals("INDIANRED")) return KnownColor.IndianRed; 487if (colorUpper.Equals("LAWNGREEN")) return KnownColor.LawnGreen; 488if (colorUpper.Equals("LIGHTBLUE")) return KnownColor.LightBlue; 489if (colorUpper.Equals("LIGHTCYAN")) return KnownColor.LightCyan; 490if (colorUpper.Equals("LIGHTGRAY")) return KnownColor.LightGray; 491if (colorUpper.Equals("LIGHTPINK")) return KnownColor.LightPink; 492if (colorUpper.Equals("LIMEGREEN")) return KnownColor.LimeGreen; 495if (colorUpper.Equals("MINTCREAM")) return KnownColor.MintCream; 496if (colorUpper.Equals("MISTYROSE")) return KnownColor.MistyRose; 499if (colorUpper.Equals("OLIVEDRAB")) return KnownColor.OliveDrab; 500if (colorUpper.Equals("ORANGERED")) return KnownColor.OrangeRed; 503if (colorUpper.Equals("PALEGREEN")) return KnownColor.PaleGreen; 504if (colorUpper.Equals("PEACHPUFF")) return KnownColor.PeachPuff; 507if (colorUpper.Equals("ROSYBROWN")) return KnownColor.RosyBrown; 508if (colorUpper.Equals("ROYALBLUE")) return KnownColor.RoyalBlue; 511if (colorUpper.Equals("SLATEBLUE")) return KnownColor.SlateBlue; 512if (colorUpper.Equals("SLATEGRAY")) return KnownColor.SlateGray; 513if (colorUpper.Equals("STEELBLUE")) return KnownColor.SteelBlue; 516if (colorUpper.Equals("TURQUOISE")) return KnownColor.Turquoise; 524if (colorUpper.Equals("AQUAMARINE")) return KnownColor.Aquamarine; 527if (colorUpper.Equals("BLUEVIOLET")) return KnownColor.BlueViolet; 530if (colorUpper.Equals("CHARTREUSE")) return KnownColor.Chartreuse; 533if (colorUpper.Equals("DARKORANGE")) return KnownColor.DarkOrange; 534if (colorUpper.Equals("DARKORCHID")) return KnownColor.DarkOrchid; 535if (colorUpper.Equals("DARKSALMON")) return KnownColor.DarkSalmon; 536if (colorUpper.Equals("DARKVIOLET")) return KnownColor.DarkViolet; 537if (colorUpper.Equals("DODGERBLUE")) return KnownColor.DodgerBlue; 540if (colorUpper.Equals("GHOSTWHITE")) return KnownColor.GhostWhite; 543if (colorUpper.Equals("LIGHTCORAL")) return KnownColor.LightCoral; 544if (colorUpper.Equals("LIGHTGREEN")) return KnownColor.LightGreen; 547if (colorUpper.Equals("MEDIUMBLUE")) return KnownColor.MediumBlue; 550if (colorUpper.Equals("PAPAYAWHIP")) return KnownColor.PapayaWhip; 551if (colorUpper.Equals("POWDERBLUE")) return KnownColor.PowderBlue; 554if (colorUpper.Equals("SANDYBROWN")) return KnownColor.SandyBrown; 557if (colorUpper.Equals("WHITESMOKE")) return KnownColor.WhiteSmoke; 565if (colorUpper.Equals("DARKMAGENTA")) return KnownColor.DarkMagenta; 566if (colorUpper.Equals("DEEPSKYBLUE")) return KnownColor.DeepSkyBlue; 569if (colorUpper.Equals("FLORALWHITE")) return KnownColor.FloralWhite; 570if (colorUpper.Equals("FORESTGREEN")) return KnownColor.ForestGreen; 573if (colorUpper.Equals("GREENYELLOW")) return KnownColor.GreenYellow; 576if (colorUpper.Equals("LIGHTSALMON")) return KnownColor.LightSalmon; 577if (colorUpper.Equals("LIGHTYELLOW")) return KnownColor.LightYellow; 580if (colorUpper.Equals("NAVAJOWHITE")) return KnownColor.NavajoWhite; 583if (colorUpper.Equals("SADDLEBROWN")) return KnownColor.SaddleBrown; 584if (colorUpper.Equals("SPRINGGREEN")) return KnownColor.SpringGreen; 587if (colorUpper.Equals("TRANSPARENT")) return KnownColor.Transparent; 590if (colorUpper.Equals("YELLOWGREEN")) return KnownColor.YellowGreen; 598if (colorUpper.Equals("ANTIQUEWHITE")) return KnownColor.AntiqueWhite; 601if (colorUpper.Equals("DARKSEAGREEN")) return KnownColor.DarkSeaGreen; 604if (colorUpper.Equals("LIGHTSKYBLUE")) return KnownColor.LightSkyBlue; 605if (colorUpper.Equals("LEMONCHIFFON")) return KnownColor.LemonChiffon; 608if (colorUpper.Equals("MEDIUMORCHID")) return KnownColor.MediumOrchid; 609if (colorUpper.Equals("MEDIUMPURPLE")) return KnownColor.MediumPurple; 610if (colorUpper.Equals("MIDNIGHTBLUE")) return KnownColor.MidnightBlue; 618if (colorUpper.Equals("DARKSLATEBLUE")) return KnownColor.DarkSlateBlue; 619if (colorUpper.Equals("DARKSLATEGRAY")) return KnownColor.DarkSlateGray; 620if (colorUpper.Equals("DARKGOLDENROD")) return KnownColor.DarkGoldenrod; 621if (colorUpper.Equals("DARKTURQUOISE")) return KnownColor.DarkTurquoise; 624if (colorUpper.Equals("LIGHTSEAGREEN")) return KnownColor.LightSeaGreen; 625if (colorUpper.Equals("LAVENDERBLUSH")) return KnownColor.LavenderBlush; 628if (colorUpper.Equals("PALEGOLDENROD")) return KnownColor.PaleGoldenrod; 629if (colorUpper.Equals("PALETURQUOISE")) return KnownColor.PaleTurquoise; 630if (colorUpper.Equals("PALEVIOLETRED")) return KnownColor.PaleVioletRed; 638if (colorUpper.Equals("BLANCHEDALMOND")) return KnownColor.BlanchedAlmond; 641if (colorUpper.Equals("CORNFLOWERBLUE")) return KnownColor.CornflowerBlue; 644if (colorUpper.Equals("DARKOLIVEGREEN")) return KnownColor.DarkOliveGreen; 647if (colorUpper.Equals("LIGHTSLATEGRAY")) return KnownColor.LightSlateGray; 648if (colorUpper.Equals("LIGHTSTEELBLUE")) return KnownColor.LightSteelBlue; 651if (colorUpper.Equals("MEDIUMSEAGREEN")) return KnownColor.MediumSeaGreen; 656if (colorUpper.Equals("MEDIUMSLATEBLUE")) return KnownColor.MediumSlateBlue; 657if (colorUpper.Equals("MEDIUMTURQUOISE")) return KnownColor.MediumTurquoise; 658if (colorUpper.Equals("MEDIUMVIOLETRED")) return KnownColor.MediumVioletRed; 661if (colorUpper.Equals("MEDIUMAQUAMARINE")) return KnownColor.MediumAquamarine; 664if (colorUpper.Equals("MEDIUMSPRINGGREEN")) return KnownColor.MediumSpringGreen; 667if (colorUpper.Equals("LIGHTGOLDENRODYELLOW")) return KnownColor.LightGoldenrodYellow; 672return KnownColor.UnknownColor; 676internal static KnownColor ArgbStringToKnownColor(string argbString) 680KnownColor color; 684return KnownColor.UnknownColor; 691private static Dictionary<string, KnownColor> s_knownArgbColors = new Dictionary<string, KnownColor>(); 719return Color.FromUInt32((uint)KnownColor.AliceBlue); 730return Color.FromUInt32((uint)KnownColor.AntiqueWhite); 741return Color.FromUInt32((uint)KnownColor.Aqua); 752return Color.FromUInt32((uint)KnownColor.Aquamarine); 763return Color.FromUInt32((uint)KnownColor.Azure); 774return Color.FromUInt32((uint)KnownColor.Beige); 785return Color.FromUInt32((uint)KnownColor.Bisque); 796return Color.FromUInt32((uint)KnownColor.Black); 807return Color.FromUInt32((uint)KnownColor.BlanchedAlmond); 818return Color.FromUInt32((uint)KnownColor.Blue); 829return Color.FromUInt32((uint)KnownColor.BlueViolet); 840return Color.FromUInt32((uint)KnownColor.Brown); 851return Color.FromUInt32((uint)KnownColor.BurlyWood); 862return Color.FromUInt32((uint)KnownColor.CadetBlue); 873return Color.FromUInt32((uint)KnownColor.Chartreuse); 884return Color.FromUInt32((uint)KnownColor.Chocolate); 895return Color.FromUInt32((uint)KnownColor.Coral); 906return Color.FromUInt32((uint)KnownColor.CornflowerBlue); 917return Color.FromUInt32((uint)KnownColor.Cornsilk); 928return Color.FromUInt32((uint)KnownColor.Crimson); 939return Color.FromUInt32((uint)KnownColor.Cyan); 950return Color.FromUInt32((uint)KnownColor.DarkBlue); 961return Color.FromUInt32((uint)KnownColor.DarkCyan); 972return Color.FromUInt32((uint)KnownColor.DarkGoldenrod); 983return Color.FromUInt32((uint)KnownColor.DarkGray); 994return Color.FromUInt32((uint)KnownColor.DarkGreen); 1005return Color.FromUInt32((uint)KnownColor.DarkKhaki); 1016return Color.FromUInt32((uint)KnownColor.DarkMagenta); 1027return Color.FromUInt32((uint)KnownColor.DarkOliveGreen); 1038return Color.FromUInt32((uint)KnownColor.DarkOrange); 1049return Color.FromUInt32((uint)KnownColor.DarkOrchid); 1060return Color.FromUInt32((uint)KnownColor.DarkRed); 1071return Color.FromUInt32((uint)KnownColor.DarkSalmon); 1082return Color.FromUInt32((uint)KnownColor.DarkSeaGreen); 1093return Color.FromUInt32((uint)KnownColor.DarkSlateBlue); 1104return Color.FromUInt32((uint)KnownColor.DarkSlateGray); 1115return Color.FromUInt32((uint)KnownColor.DarkTurquoise); 1126return Color.FromUInt32((uint)KnownColor.DarkViolet); 1137return Color.FromUInt32((uint)KnownColor.DeepPink); 1148return Color.FromUInt32((uint)KnownColor.DeepSkyBlue); 1159return Color.FromUInt32((uint)KnownColor.DimGray); 1170return Color.FromUInt32((uint)KnownColor.DodgerBlue); 1181return Color.FromUInt32((uint)KnownColor.Firebrick); 1192return Color.FromUInt32((uint)KnownColor.FloralWhite); 1203return Color.FromUInt32((uint)KnownColor.ForestGreen); 1214return Color.FromUInt32((uint)KnownColor.Fuchsia); 1225return Color.FromUInt32((uint)KnownColor.Gainsboro); 1236return Color.FromUInt32((uint)KnownColor.GhostWhite); 1247return Color.FromUInt32((uint)KnownColor.Gold); 1258return Color.FromUInt32((uint)KnownColor.Goldenrod); 1269return Color.FromUInt32((uint)KnownColor.Gray); 1280return Color.FromUInt32((uint)KnownColor.Green); 1291return Color.FromUInt32((uint)KnownColor.GreenYellow); 1302return Color.FromUInt32((uint)KnownColor.Honeydew); 1313return Color.FromUInt32((uint)KnownColor.HotPink); 1324return Color.FromUInt32((uint)KnownColor.IndianRed); 1335return Color.FromUInt32((uint)KnownColor.Indigo); 1346return Color.FromUInt32((uint)KnownColor.Ivory); 1357return Color.FromUInt32((uint)KnownColor.Khaki); 1368return Color.FromUInt32((uint)KnownColor.Lavender); 1379return Color.FromUInt32((uint)KnownColor.LavenderBlush); 1390return Color.FromUInt32((uint)KnownColor.LawnGreen); 1401return Color.FromUInt32((uint)KnownColor.LemonChiffon); 1412return Color.FromUInt32((uint)KnownColor.LightBlue); 1423return Color.FromUInt32((uint)KnownColor.LightCoral); 1434return Color.FromUInt32((uint)KnownColor.LightCyan); 1445return Color.FromUInt32((uint)KnownColor.LightGoldenrodYellow); 1456return Color.FromUInt32((uint)KnownColor.LightGray); 1467return Color.FromUInt32((uint)KnownColor.LightGreen); 1478return Color.FromUInt32((uint)KnownColor.LightPink); 1489return Color.FromUInt32((uint)KnownColor.LightSalmon); 1500return Color.FromUInt32((uint)KnownColor.LightSeaGreen); 1511return Color.FromUInt32((uint)KnownColor.LightSkyBlue); 1522return Color.FromUInt32((uint)KnownColor.LightSlateGray); 1533return Color.FromUInt32((uint)KnownColor.LightSteelBlue); 1544return Color.FromUInt32((uint)KnownColor.LightYellow); 1555return Color.FromUInt32((uint)KnownColor.Lime); 1566return Color.FromUInt32((uint)KnownColor.LimeGreen); 1577return Color.FromUInt32((uint)KnownColor.Linen); 1588return Color.FromUInt32((uint)KnownColor.Magenta); 1599return Color.FromUInt32((uint)KnownColor.Maroon); 1610return Color.FromUInt32((uint)KnownColor.MediumAquamarine); 1621return Color.FromUInt32((uint)KnownColor.MediumBlue); 1632return Color.FromUInt32((uint)KnownColor.MediumOrchid); 1643return Color.FromUInt32((uint)KnownColor.MediumPurple); 1654return Color.FromUInt32((uint)KnownColor.MediumSeaGreen); 1665return Color.FromUInt32((uint)KnownColor.MediumSlateBlue); 1676return Color.FromUInt32((uint)KnownColor.MediumSpringGreen); 1687return Color.FromUInt32((uint)KnownColor.MediumTurquoise); 1698return Color.FromUInt32((uint)KnownColor.MediumVioletRed); 1709return Color.FromUInt32((uint)KnownColor.MidnightBlue); 1720return Color.FromUInt32((uint)KnownColor.MintCream); 1731return Color.FromUInt32((uint)KnownColor.MistyRose); 1742return Color.FromUInt32((uint)KnownColor.Moccasin); 1753return Color.FromUInt32((uint)KnownColor.NavajoWhite); 1764return Color.FromUInt32((uint)KnownColor.Navy); 1775return Color.FromUInt32((uint)KnownColor.OldLace); 1786return Color.FromUInt32((uint)KnownColor.Olive); 1797return Color.FromUInt32((uint)KnownColor.OliveDrab); 1808return Color.FromUInt32((uint)KnownColor.Orange); 1819return Color.FromUInt32((uint)KnownColor.OrangeRed); 1830return Color.FromUInt32((uint)KnownColor.Orchid); 1841return Color.FromUInt32((uint)KnownColor.PaleGoldenrod); 1852return Color.FromUInt32((uint)KnownColor.PaleGreen); 1863return Color.FromUInt32((uint)KnownColor.PaleTurquoise); 1874return Color.FromUInt32((uint)KnownColor.PaleVioletRed); 1885return Color.FromUInt32((uint)KnownColor.PapayaWhip); 1896return Color.FromUInt32((uint)KnownColor.PeachPuff); 1907return Color.FromUInt32((uint)KnownColor.Peru); 1918return Color.FromUInt32((uint)KnownColor.Pink); 1929return Color.FromUInt32((uint)KnownColor.Plum); 1940return Color.FromUInt32((uint)KnownColor.PowderBlue); 1951return Color.FromUInt32((uint)KnownColor.Purple); 1962return Color.FromUInt32((uint)KnownColor.Red); 1973return Color.FromUInt32((uint)KnownColor.RosyBrown); 1984return Color.FromUInt32((uint)KnownColor.RoyalBlue); 1995return Color.FromUInt32((uint)KnownColor.SaddleBrown); 2006return Color.FromUInt32((uint)KnownColor.Salmon); 2017return Color.FromUInt32((uint)KnownColor.SandyBrown); 2028return Color.FromUInt32((uint)KnownColor.SeaGreen); 2039return Color.FromUInt32((uint)KnownColor.SeaShell); 2050return Color.FromUInt32((uint)KnownColor.Sienna); 2061return Color.FromUInt32((uint)KnownColor.Silver); 2072return Color.FromUInt32((uint)KnownColor.SkyBlue); 2083return Color.FromUInt32((uint)KnownColor.SlateBlue); 2094return Color.FromUInt32((uint)KnownColor.SlateGray); 2105return Color.FromUInt32((uint)KnownColor.Snow); 2116return Color.FromUInt32((uint)KnownColor.SpringGreen); 2127return Color.FromUInt32((uint)KnownColor.SteelBlue); 2138return Color.FromUInt32((uint)KnownColor.Tan); 2149return Color.FromUInt32((uint)KnownColor.Teal); 2160return Color.FromUInt32((uint)KnownColor.Thistle); 2171return Color.FromUInt32((uint)KnownColor.Tomato); 2182return Color.FromUInt32((uint)KnownColor.Transparent); 2193return Color.FromUInt32((uint)KnownColor.Turquoise); 2204return Color.FromUInt32((uint)KnownColor.Violet); 2215return Color.FromUInt32((uint)KnownColor.Wheat); 2226return Color.FromUInt32((uint)KnownColor.White); 2237return Color.FromUInt32((uint)KnownColor.WhiteSmoke); 2248return Color.FromUInt32((uint)KnownColor.Yellow); 2259return Color.FromUInt32((uint)KnownColor.YellowGreen);
System\Windows\Media\Parsers.cs (2)
237KnownColor kc = KnownColors.ColorStringToKnownColor(trimmedColor); 239if (kc == KnownColor.UnknownColor)
System\Windows\Media\SolidColorBrush.cs (2)
91KnownColor knownColor = KnownColors.ColorStringToKnownColor(stringValue); 109if (knownColor != KnownColor.UnknownColor)