439 references to KnownColor
PresentationCore (439)
System\Windows\Media\brushes.cs (141)
37return KnownColors.SolidColorBrushFromUint((uint)KnownColor.AliceBlue); 48return KnownColors.SolidColorBrushFromUint((uint)KnownColor.AntiqueWhite); 59return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Aqua); 70return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Aquamarine); 81return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Azure); 92return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Beige); 103return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Bisque); 114return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Black); 125return KnownColors.SolidColorBrushFromUint((uint)KnownColor.BlanchedAlmond); 136return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Blue); 147return KnownColors.SolidColorBrushFromUint((uint)KnownColor.BlueViolet); 158return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Brown); 169return KnownColors.SolidColorBrushFromUint((uint)KnownColor.BurlyWood); 180return KnownColors.SolidColorBrushFromUint((uint)KnownColor.CadetBlue); 191return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Chartreuse); 202return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Chocolate); 213return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Coral); 224return KnownColors.SolidColorBrushFromUint((uint)KnownColor.CornflowerBlue); 235return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Cornsilk); 246return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Crimson); 257return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Cyan); 268return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkBlue); 279return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkCyan); 290return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkGoldenrod); 301return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkGray); 312return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkGreen); 323return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkKhaki); 334return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkMagenta); 345return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkOliveGreen); 356return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkOrange); 367return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkOrchid); 378return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkRed); 389return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkSalmon); 400return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkSeaGreen); 411return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkSlateBlue); 422return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkSlateGray); 433return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkTurquoise); 444return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DarkViolet); 455return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DeepPink); 466return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DeepSkyBlue); 477return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DimGray); 488return KnownColors.SolidColorBrushFromUint((uint)KnownColor.DodgerBlue); 499return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Firebrick); 510return KnownColors.SolidColorBrushFromUint((uint)KnownColor.FloralWhite); 521return KnownColors.SolidColorBrushFromUint((uint)KnownColor.ForestGreen); 532return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Fuchsia); 543return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Gainsboro); 554return KnownColors.SolidColorBrushFromUint((uint)KnownColor.GhostWhite); 565return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Gold); 576return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Goldenrod); 587return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Gray); 598return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Green); 609return KnownColors.SolidColorBrushFromUint((uint)KnownColor.GreenYellow); 620return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Honeydew); 631return KnownColors.SolidColorBrushFromUint((uint)KnownColor.HotPink); 642return KnownColors.SolidColorBrushFromUint((uint)KnownColor.IndianRed); 653return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Indigo); 664return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Ivory); 675return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Khaki); 686return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Lavender); 697return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LavenderBlush); 708return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LawnGreen); 719return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LemonChiffon); 730return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightBlue); 741return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightCoral); 752return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightCyan); 763return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightGoldenrodYellow); 774return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightGray); 785return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightGreen); 796return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightPink); 807return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightSalmon); 818return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightSeaGreen); 829return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightSkyBlue); 840return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightSlateGray); 851return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightSteelBlue); 862return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LightYellow); 873return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Lime); 884return KnownColors.SolidColorBrushFromUint((uint)KnownColor.LimeGreen); 895return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Linen); 906return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Magenta); 917return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Maroon); 928return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumAquamarine); 939return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumBlue); 950return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumOrchid); 961return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumPurple); 972return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumSeaGreen); 983return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumSlateBlue); 994return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumSpringGreen); 1005return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumTurquoise); 1016return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MediumVioletRed); 1027return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MidnightBlue); 1038return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MintCream); 1049return KnownColors.SolidColorBrushFromUint((uint)KnownColor.MistyRose); 1060return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Moccasin); 1071return KnownColors.SolidColorBrushFromUint((uint)KnownColor.NavajoWhite); 1082return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Navy); 1093return KnownColors.SolidColorBrushFromUint((uint)KnownColor.OldLace); 1104return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Olive); 1115return KnownColors.SolidColorBrushFromUint((uint)KnownColor.OliveDrab); 1126return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Orange); 1137return KnownColors.SolidColorBrushFromUint((uint)KnownColor.OrangeRed); 1148return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Orchid); 1159return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PaleGoldenrod); 1170return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PaleGreen); 1181return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PaleTurquoise); 1192return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PaleVioletRed); 1203return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PapayaWhip); 1214return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PeachPuff); 1225return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Peru); 1236return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Pink); 1247return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Plum); 1258return KnownColors.SolidColorBrushFromUint((uint)KnownColor.PowderBlue); 1269return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Purple); 1280return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Red); 1291return KnownColors.SolidColorBrushFromUint((uint)KnownColor.RosyBrown); 1302return KnownColors.SolidColorBrushFromUint((uint)KnownColor.RoyalBlue); 1313return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SaddleBrown); 1324return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Salmon); 1335return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SandyBrown); 1346return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SeaGreen); 1357return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SeaShell); 1368return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Sienna); 1379return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Silver); 1390return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SkyBlue); 1401return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SlateBlue); 1412return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SlateGray); 1423return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Snow); 1434return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SpringGreen); 1445return KnownColors.SolidColorBrushFromUint((uint)KnownColor.SteelBlue); 1456return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Tan); 1467return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Teal); 1478return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Thistle); 1489return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Tomato); 1500return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Transparent); 1511return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Turquoise); 1522return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Violet); 1533return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Wheat); 1544return KnownColors.SolidColorBrushFromUint((uint)KnownColor.White); 1555return KnownColors.SolidColorBrushFromUint((uint)KnownColor.WhiteSmoke); 1566return KnownColors.SolidColorBrushFromUint((uint)KnownColor.Yellow); 1577return 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)
223KnownColor kc = KnownColors.ColorStringToKnownColor(trimmedColor); 225if (kc == KnownColor.UnknownColor)
System\Windows\Media\SolidColorBrush.cs (2)
69KnownColor knownColor = KnownColors.ColorStringToKnownColor(stringValue); 87if (knownColor != KnownColor.UnknownColor)