438 references to KnownColor
PresentationCore (438)
Core\CSharp\System\Windows\Media\Brushes.cs (141)
44
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.AliceBlue);
55
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.AntiqueWhite);
66
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Aqua);
77
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Aquamarine);
88
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Azure);
99
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Beige);
110
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Bisque);
121
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Black);
132
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.BlanchedAlmond);
143
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Blue);
154
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.BlueViolet);
165
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Brown);
176
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.BurlyWood);
187
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.CadetBlue);
198
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Chartreuse);
209
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Chocolate);
220
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Coral);
231
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.CornflowerBlue);
242
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Cornsilk);
253
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Crimson);
264
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Cyan);
275
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkBlue);
286
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkCyan);
297
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkGoldenrod);
308
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkGray);
319
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkGreen);
330
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkKhaki);
341
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkMagenta);
352
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkOliveGreen);
363
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkOrange);
374
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkOrchid);
385
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkRed);
396
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkSalmon);
407
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkSeaGreen);
418
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkSlateBlue);
429
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkSlateGray);
440
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkTurquoise);
451
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DarkViolet);
462
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DeepPink);
473
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DeepSkyBlue);
484
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DimGray);
495
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.DodgerBlue);
506
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Firebrick);
517
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.FloralWhite);
528
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.ForestGreen);
539
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Fuchsia);
550
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Gainsboro);
561
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.GhostWhite);
572
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Gold);
583
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Goldenrod);
594
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Gray);
605
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Green);
616
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.GreenYellow);
627
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Honeydew);
638
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.HotPink);
649
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.IndianRed);
660
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Indigo);
671
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Ivory);
682
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Khaki);
693
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Lavender);
704
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LavenderBlush);
715
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LawnGreen);
726
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LemonChiffon);
737
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightBlue);
748
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightCoral);
759
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightCyan);
770
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightGoldenrodYellow);
781
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightGray);
792
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightGreen);
803
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightPink);
814
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightSalmon);
825
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightSeaGreen);
836
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightSkyBlue);
847
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightSlateGray);
858
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightSteelBlue);
869
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LightYellow);
880
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Lime);
891
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.LimeGreen);
902
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Linen);
913
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Magenta);
924
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Maroon);
935
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MediumAquamarine);
946
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MediumBlue);
957
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MediumOrchid);
968
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MediumPurple);
979
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MediumSeaGreen);
990
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MediumSlateBlue);
1001
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MediumSpringGreen);
1012
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MediumTurquoise);
1023
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MediumVioletRed);
1034
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MidnightBlue);
1045
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MintCream);
1056
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.MistyRose);
1067
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Moccasin);
1078
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.NavajoWhite);
1089
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Navy);
1100
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.OldLace);
1111
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Olive);
1122
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.OliveDrab);
1133
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Orange);
1144
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.OrangeRed);
1155
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Orchid);
1166
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.PaleGoldenrod);
1177
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.PaleGreen);
1188
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.PaleTurquoise);
1199
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.PaleVioletRed);
1210
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.PapayaWhip);
1221
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.PeachPuff);
1232
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Peru);
1243
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Pink);
1254
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Plum);
1265
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.PowderBlue);
1276
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Purple);
1287
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Red);
1298
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.RosyBrown);
1309
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.RoyalBlue);
1320
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.SaddleBrown);
1331
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Salmon);
1342
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.SandyBrown);
1353
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.SeaGreen);
1364
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.SeaShell);
1375
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Sienna);
1386
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Silver);
1397
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.SkyBlue);
1408
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.SlateBlue);
1419
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.SlateGray);
1430
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Snow);
1441
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.SpringGreen);
1452
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.SteelBlue);
1463
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Tan);
1474
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Teal);
1485
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Thistle);
1496
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Tomato);
1507
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Transparent);
1518
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Turquoise);
1529
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Violet);
1540
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Wheat);
1551
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.White);
1562
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.WhiteSmoke);
1573
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.Yellow);
1584
return KnownColors.SolidColorBrushFromUint((uint)
KnownColor
.YellowGreen);
Core\CSharp\System\Windows\Media\KnownColors.cs (293)
178
Array knownColorValues = Enum.GetValues(typeof(
KnownColor
));
179
foreach (
KnownColor
colorValue in knownColorValues)
191
KnownColor
result = ColorStringToKnownColor(s);
194
if (result !=
KnownColor
.UnknownColor)
285
internal static
KnownColor
ColorStringToKnownColor(string colorString)
298
if (colorUpper.Equals("RED")) return
KnownColor
.Red;
299
if (colorUpper.Equals("TAN")) return
KnownColor
.Tan;
305
if (colorUpper.Equals("AQUA")) return
KnownColor
.Aqua;
308
if (colorUpper.Equals("BLUE")) return
KnownColor
.Blue;
311
if (colorUpper.Equals("CYAN")) return
KnownColor
.Cyan;
314
if (colorUpper.Equals("GOLD")) return
KnownColor
.Gold;
315
if (colorUpper.Equals("GRAY")) return
KnownColor
.Gray;
318
if (colorUpper.Equals("LIME")) return
KnownColor
.Lime;
321
if (colorUpper.Equals("NAVY")) return
KnownColor
.Navy;
324
if (colorUpper.Equals("PERU")) return
KnownColor
.Peru;
325
if (colorUpper.Equals("PINK")) return
KnownColor
.Pink;
326
if (colorUpper.Equals("PLUM")) return
KnownColor
.Plum;
329
if (colorUpper.Equals("SNOW")) return
KnownColor
.Snow;
332
if (colorUpper.Equals("TEAL")) return
KnownColor
.Teal;
340
if (colorUpper.Equals("AZURE")) return
KnownColor
.Azure;
343
if (colorUpper.Equals("BEIGE")) return
KnownColor
.Beige;
344
if (colorUpper.Equals("BLACK")) return
KnownColor
.Black;
345
if (colorUpper.Equals("BROWN")) return
KnownColor
.Brown;
348
if (colorUpper.Equals("CORAL")) return
KnownColor
.Coral;
351
if (colorUpper.Equals("GREEN")) return
KnownColor
.Green;
354
if (colorUpper.Equals("IVORY")) return
KnownColor
.Ivory;
357
if (colorUpper.Equals("KHAKI")) return
KnownColor
.Khaki;
360
if (colorUpper.Equals("LINEN")) return
KnownColor
.Linen;
363
if (colorUpper.Equals("OLIVE")) return
KnownColor
.Olive;
366
if (colorUpper.Equals("WHEAT")) return
KnownColor
.Wheat;
367
if (colorUpper.Equals("WHITE")) return
KnownColor
.White;
375
if (colorUpper.Equals("BISQUE")) return
KnownColor
.Bisque;
378
if (colorUpper.Equals("INDIGO")) return
KnownColor
.Indigo;
381
if (colorUpper.Equals("MAROON")) return
KnownColor
.Maroon;
384
if (colorUpper.Equals("ORANGE")) return
KnownColor
.Orange;
385
if (colorUpper.Equals("ORCHID")) return
KnownColor
.Orchid;
388
if (colorUpper.Equals("PURPLE")) return
KnownColor
.Purple;
391
if (colorUpper.Equals("SALMON")) return
KnownColor
.Salmon;
392
if (colorUpper.Equals("SIENNA")) return
KnownColor
.Sienna;
393
if (colorUpper.Equals("SILVER")) return
KnownColor
.Silver;
396
if (colorUpper.Equals("TOMATO")) return
KnownColor
.Tomato;
399
if (colorUpper.Equals("VIOLET")) return
KnownColor
.Violet;
402
if (colorUpper.Equals("YELLOW")) return
KnownColor
.Yellow;
410
if (colorUpper.Equals("CRIMSON")) return
KnownColor
.Crimson;
413
if (colorUpper.Equals("DARKRED")) return
KnownColor
.DarkRed;
414
if (colorUpper.Equals("DIMGRAY")) return
KnownColor
.DimGray;
417
if (colorUpper.Equals("FUCHSIA")) return
KnownColor
.Fuchsia;
420
if (colorUpper.Equals("HOTPINK")) return
KnownColor
.HotPink;
423
if (colorUpper.Equals("MAGENTA")) return
KnownColor
.Magenta;
426
if (colorUpper.Equals("OLDLACE")) return
KnownColor
.OldLace;
429
if (colorUpper.Equals("SKYBLUE")) return
KnownColor
.SkyBlue;
432
if (colorUpper.Equals("THISTLE")) return
KnownColor
.Thistle;
440
if (colorUpper.Equals("CORNSILK")) return
KnownColor
.Cornsilk;
443
if (colorUpper.Equals("DARKBLUE")) return
KnownColor
.DarkBlue;
444
if (colorUpper.Equals("DARKCYAN")) return
KnownColor
.DarkCyan;
445
if (colorUpper.Equals("DARKGRAY")) return
KnownColor
.DarkGray;
446
if (colorUpper.Equals("DEEPPINK")) return
KnownColor
.DeepPink;
449
if (colorUpper.Equals("HONEYDEW")) return
KnownColor
.Honeydew;
452
if (colorUpper.Equals("LAVENDER")) return
KnownColor
.Lavender;
455
if (colorUpper.Equals("MOCCASIN")) return
KnownColor
.Moccasin;
458
if (colorUpper.Equals("SEAGREEN")) return
KnownColor
.SeaGreen;
459
if (colorUpper.Equals("SEASHELL")) return
KnownColor
.SeaShell;
467
if (colorUpper.Equals("ALICEBLUE")) return
KnownColor
.AliceBlue;
470
if (colorUpper.Equals("BURLYWOOD")) return
KnownColor
.BurlyWood;
473
if (colorUpper.Equals("CADETBLUE")) return
KnownColor
.CadetBlue;
474
if (colorUpper.Equals("CHOCOLATE")) return
KnownColor
.Chocolate;
477
if (colorUpper.Equals("DARKGREEN")) return
KnownColor
.DarkGreen;
478
if (colorUpper.Equals("DARKKHAKI")) return
KnownColor
.DarkKhaki;
481
if (colorUpper.Equals("FIREBRICK")) return
KnownColor
.Firebrick;
484
if (colorUpper.Equals("GAINSBORO")) return
KnownColor
.Gainsboro;
485
if (colorUpper.Equals("GOLDENROD")) return
KnownColor
.Goldenrod;
488
if (colorUpper.Equals("INDIANRED")) return
KnownColor
.IndianRed;
491
if (colorUpper.Equals("LAWNGREEN")) return
KnownColor
.LawnGreen;
492
if (colorUpper.Equals("LIGHTBLUE")) return
KnownColor
.LightBlue;
493
if (colorUpper.Equals("LIGHTCYAN")) return
KnownColor
.LightCyan;
494
if (colorUpper.Equals("LIGHTGRAY")) return
KnownColor
.LightGray;
495
if (colorUpper.Equals("LIGHTPINK")) return
KnownColor
.LightPink;
496
if (colorUpper.Equals("LIMEGREEN")) return
KnownColor
.LimeGreen;
499
if (colorUpper.Equals("MINTCREAM")) return
KnownColor
.MintCream;
500
if (colorUpper.Equals("MISTYROSE")) return
KnownColor
.MistyRose;
503
if (colorUpper.Equals("OLIVEDRAB")) return
KnownColor
.OliveDrab;
504
if (colorUpper.Equals("ORANGERED")) return
KnownColor
.OrangeRed;
507
if (colorUpper.Equals("PALEGREEN")) return
KnownColor
.PaleGreen;
508
if (colorUpper.Equals("PEACHPUFF")) return
KnownColor
.PeachPuff;
511
if (colorUpper.Equals("ROSYBROWN")) return
KnownColor
.RosyBrown;
512
if (colorUpper.Equals("ROYALBLUE")) return
KnownColor
.RoyalBlue;
515
if (colorUpper.Equals("SLATEBLUE")) return
KnownColor
.SlateBlue;
516
if (colorUpper.Equals("SLATEGRAY")) return
KnownColor
.SlateGray;
517
if (colorUpper.Equals("STEELBLUE")) return
KnownColor
.SteelBlue;
520
if (colorUpper.Equals("TURQUOISE")) return
KnownColor
.Turquoise;
528
if (colorUpper.Equals("AQUAMARINE")) return
KnownColor
.Aquamarine;
531
if (colorUpper.Equals("BLUEVIOLET")) return
KnownColor
.BlueViolet;
534
if (colorUpper.Equals("CHARTREUSE")) return
KnownColor
.Chartreuse;
537
if (colorUpper.Equals("DARKORANGE")) return
KnownColor
.DarkOrange;
538
if (colorUpper.Equals("DARKORCHID")) return
KnownColor
.DarkOrchid;
539
if (colorUpper.Equals("DARKSALMON")) return
KnownColor
.DarkSalmon;
540
if (colorUpper.Equals("DARKVIOLET")) return
KnownColor
.DarkViolet;
541
if (colorUpper.Equals("DODGERBLUE")) return
KnownColor
.DodgerBlue;
544
if (colorUpper.Equals("GHOSTWHITE")) return
KnownColor
.GhostWhite;
547
if (colorUpper.Equals("LIGHTCORAL")) return
KnownColor
.LightCoral;
548
if (colorUpper.Equals("LIGHTGREEN")) return
KnownColor
.LightGreen;
551
if (colorUpper.Equals("MEDIUMBLUE")) return
KnownColor
.MediumBlue;
554
if (colorUpper.Equals("PAPAYAWHIP")) return
KnownColor
.PapayaWhip;
555
if (colorUpper.Equals("POWDERBLUE")) return
KnownColor
.PowderBlue;
558
if (colorUpper.Equals("SANDYBROWN")) return
KnownColor
.SandyBrown;
561
if (colorUpper.Equals("WHITESMOKE")) return
KnownColor
.WhiteSmoke;
569
if (colorUpper.Equals("DARKMAGENTA")) return
KnownColor
.DarkMagenta;
570
if (colorUpper.Equals("DEEPSKYBLUE")) return
KnownColor
.DeepSkyBlue;
573
if (colorUpper.Equals("FLORALWHITE")) return
KnownColor
.FloralWhite;
574
if (colorUpper.Equals("FORESTGREEN")) return
KnownColor
.ForestGreen;
577
if (colorUpper.Equals("GREENYELLOW")) return
KnownColor
.GreenYellow;
580
if (colorUpper.Equals("LIGHTSALMON")) return
KnownColor
.LightSalmon;
581
if (colorUpper.Equals("LIGHTYELLOW")) return
KnownColor
.LightYellow;
584
if (colorUpper.Equals("NAVAJOWHITE")) return
KnownColor
.NavajoWhite;
587
if (colorUpper.Equals("SADDLEBROWN")) return
KnownColor
.SaddleBrown;
588
if (colorUpper.Equals("SPRINGGREEN")) return
KnownColor
.SpringGreen;
591
if (colorUpper.Equals("TRANSPARENT")) return
KnownColor
.Transparent;
594
if (colorUpper.Equals("YELLOWGREEN")) return
KnownColor
.YellowGreen;
602
if (colorUpper.Equals("ANTIQUEWHITE")) return
KnownColor
.AntiqueWhite;
605
if (colorUpper.Equals("DARKSEAGREEN")) return
KnownColor
.DarkSeaGreen;
608
if (colorUpper.Equals("LIGHTSKYBLUE")) return
KnownColor
.LightSkyBlue;
609
if (colorUpper.Equals("LEMONCHIFFON")) return
KnownColor
.LemonChiffon;
612
if (colorUpper.Equals("MEDIUMORCHID")) return
KnownColor
.MediumOrchid;
613
if (colorUpper.Equals("MEDIUMPURPLE")) return
KnownColor
.MediumPurple;
614
if (colorUpper.Equals("MIDNIGHTBLUE")) return
KnownColor
.MidnightBlue;
622
if (colorUpper.Equals("DARKSLATEBLUE")) return
KnownColor
.DarkSlateBlue;
623
if (colorUpper.Equals("DARKSLATEGRAY")) return
KnownColor
.DarkSlateGray;
624
if (colorUpper.Equals("DARKGOLDENROD")) return
KnownColor
.DarkGoldenrod;
625
if (colorUpper.Equals("DARKTURQUOISE")) return
KnownColor
.DarkTurquoise;
628
if (colorUpper.Equals("LIGHTSEAGREEN")) return
KnownColor
.LightSeaGreen;
629
if (colorUpper.Equals("LAVENDERBLUSH")) return
KnownColor
.LavenderBlush;
632
if (colorUpper.Equals("PALEGOLDENROD")) return
KnownColor
.PaleGoldenrod;
633
if (colorUpper.Equals("PALETURQUOISE")) return
KnownColor
.PaleTurquoise;
634
if (colorUpper.Equals("PALEVIOLETRED")) return
KnownColor
.PaleVioletRed;
642
if (colorUpper.Equals("BLANCHEDALMOND")) return
KnownColor
.BlanchedAlmond;
645
if (colorUpper.Equals("CORNFLOWERBLUE")) return
KnownColor
.CornflowerBlue;
648
if (colorUpper.Equals("DARKOLIVEGREEN")) return
KnownColor
.DarkOliveGreen;
651
if (colorUpper.Equals("LIGHTSLATEGRAY")) return
KnownColor
.LightSlateGray;
652
if (colorUpper.Equals("LIGHTSTEELBLUE")) return
KnownColor
.LightSteelBlue;
655
if (colorUpper.Equals("MEDIUMSEAGREEN")) return
KnownColor
.MediumSeaGreen;
660
if (colorUpper.Equals("MEDIUMSLATEBLUE")) return
KnownColor
.MediumSlateBlue;
661
if (colorUpper.Equals("MEDIUMTURQUOISE")) return
KnownColor
.MediumTurquoise;
662
if (colorUpper.Equals("MEDIUMVIOLETRED")) return
KnownColor
.MediumVioletRed;
665
if (colorUpper.Equals("MEDIUMAQUAMARINE")) return
KnownColor
.MediumAquamarine;
668
if (colorUpper.Equals("MEDIUMSPRINGGREEN")) return
KnownColor
.MediumSpringGreen;
671
if (colorUpper.Equals("LIGHTGOLDENRODYELLOW")) return
KnownColor
.LightGoldenrodYellow;
676
return
KnownColor
.UnknownColor;
680
internal static
KnownColor
ArgbStringToKnownColor(string argbString)
684
KnownColor
color;
688
return
KnownColor
.UnknownColor;
695
private static Dictionary<string,
KnownColor
> s_knownArgbColors = new Dictionary<string,
KnownColor
>();
723
return Color.FromUInt32((uint)
KnownColor
.AliceBlue);
734
return Color.FromUInt32((uint)
KnownColor
.AntiqueWhite);
745
return Color.FromUInt32((uint)
KnownColor
.Aqua);
756
return Color.FromUInt32((uint)
KnownColor
.Aquamarine);
767
return Color.FromUInt32((uint)
KnownColor
.Azure);
778
return Color.FromUInt32((uint)
KnownColor
.Beige);
789
return Color.FromUInt32((uint)
KnownColor
.Bisque);
800
return Color.FromUInt32((uint)
KnownColor
.Black);
811
return Color.FromUInt32((uint)
KnownColor
.BlanchedAlmond);
822
return Color.FromUInt32((uint)
KnownColor
.Blue);
833
return Color.FromUInt32((uint)
KnownColor
.BlueViolet);
844
return Color.FromUInt32((uint)
KnownColor
.Brown);
855
return Color.FromUInt32((uint)
KnownColor
.BurlyWood);
866
return Color.FromUInt32((uint)
KnownColor
.CadetBlue);
877
return Color.FromUInt32((uint)
KnownColor
.Chartreuse);
888
return Color.FromUInt32((uint)
KnownColor
.Chocolate);
899
return Color.FromUInt32((uint)
KnownColor
.Coral);
910
return Color.FromUInt32((uint)
KnownColor
.CornflowerBlue);
921
return Color.FromUInt32((uint)
KnownColor
.Cornsilk);
932
return Color.FromUInt32((uint)
KnownColor
.Crimson);
943
return Color.FromUInt32((uint)
KnownColor
.Cyan);
954
return Color.FromUInt32((uint)
KnownColor
.DarkBlue);
965
return Color.FromUInt32((uint)
KnownColor
.DarkCyan);
976
return Color.FromUInt32((uint)
KnownColor
.DarkGoldenrod);
987
return Color.FromUInt32((uint)
KnownColor
.DarkGray);
998
return Color.FromUInt32((uint)
KnownColor
.DarkGreen);
1009
return Color.FromUInt32((uint)
KnownColor
.DarkKhaki);
1020
return Color.FromUInt32((uint)
KnownColor
.DarkMagenta);
1031
return Color.FromUInt32((uint)
KnownColor
.DarkOliveGreen);
1042
return Color.FromUInt32((uint)
KnownColor
.DarkOrange);
1053
return Color.FromUInt32((uint)
KnownColor
.DarkOrchid);
1064
return Color.FromUInt32((uint)
KnownColor
.DarkRed);
1075
return Color.FromUInt32((uint)
KnownColor
.DarkSalmon);
1086
return Color.FromUInt32((uint)
KnownColor
.DarkSeaGreen);
1097
return Color.FromUInt32((uint)
KnownColor
.DarkSlateBlue);
1108
return Color.FromUInt32((uint)
KnownColor
.DarkSlateGray);
1119
return Color.FromUInt32((uint)
KnownColor
.DarkTurquoise);
1130
return Color.FromUInt32((uint)
KnownColor
.DarkViolet);
1141
return Color.FromUInt32((uint)
KnownColor
.DeepPink);
1152
return Color.FromUInt32((uint)
KnownColor
.DeepSkyBlue);
1163
return Color.FromUInt32((uint)
KnownColor
.DimGray);
1174
return Color.FromUInt32((uint)
KnownColor
.DodgerBlue);
1185
return Color.FromUInt32((uint)
KnownColor
.Firebrick);
1196
return Color.FromUInt32((uint)
KnownColor
.FloralWhite);
1207
return Color.FromUInt32((uint)
KnownColor
.ForestGreen);
1218
return Color.FromUInt32((uint)
KnownColor
.Fuchsia);
1229
return Color.FromUInt32((uint)
KnownColor
.Gainsboro);
1240
return Color.FromUInt32((uint)
KnownColor
.GhostWhite);
1251
return Color.FromUInt32((uint)
KnownColor
.Gold);
1262
return Color.FromUInt32((uint)
KnownColor
.Goldenrod);
1273
return Color.FromUInt32((uint)
KnownColor
.Gray);
1284
return Color.FromUInt32((uint)
KnownColor
.Green);
1295
return Color.FromUInt32((uint)
KnownColor
.GreenYellow);
1306
return Color.FromUInt32((uint)
KnownColor
.Honeydew);
1317
return Color.FromUInt32((uint)
KnownColor
.HotPink);
1328
return Color.FromUInt32((uint)
KnownColor
.IndianRed);
1339
return Color.FromUInt32((uint)
KnownColor
.Indigo);
1350
return Color.FromUInt32((uint)
KnownColor
.Ivory);
1361
return Color.FromUInt32((uint)
KnownColor
.Khaki);
1372
return Color.FromUInt32((uint)
KnownColor
.Lavender);
1383
return Color.FromUInt32((uint)
KnownColor
.LavenderBlush);
1394
return Color.FromUInt32((uint)
KnownColor
.LawnGreen);
1405
return Color.FromUInt32((uint)
KnownColor
.LemonChiffon);
1416
return Color.FromUInt32((uint)
KnownColor
.LightBlue);
1427
return Color.FromUInt32((uint)
KnownColor
.LightCoral);
1438
return Color.FromUInt32((uint)
KnownColor
.LightCyan);
1449
return Color.FromUInt32((uint)
KnownColor
.LightGoldenrodYellow);
1460
return Color.FromUInt32((uint)
KnownColor
.LightGray);
1471
return Color.FromUInt32((uint)
KnownColor
.LightGreen);
1482
return Color.FromUInt32((uint)
KnownColor
.LightPink);
1493
return Color.FromUInt32((uint)
KnownColor
.LightSalmon);
1504
return Color.FromUInt32((uint)
KnownColor
.LightSeaGreen);
1515
return Color.FromUInt32((uint)
KnownColor
.LightSkyBlue);
1526
return Color.FromUInt32((uint)
KnownColor
.LightSlateGray);
1537
return Color.FromUInt32((uint)
KnownColor
.LightSteelBlue);
1548
return Color.FromUInt32((uint)
KnownColor
.LightYellow);
1559
return Color.FromUInt32((uint)
KnownColor
.Lime);
1570
return Color.FromUInt32((uint)
KnownColor
.LimeGreen);
1581
return Color.FromUInt32((uint)
KnownColor
.Linen);
1592
return Color.FromUInt32((uint)
KnownColor
.Magenta);
1603
return Color.FromUInt32((uint)
KnownColor
.Maroon);
1614
return Color.FromUInt32((uint)
KnownColor
.MediumAquamarine);
1625
return Color.FromUInt32((uint)
KnownColor
.MediumBlue);
1636
return Color.FromUInt32((uint)
KnownColor
.MediumOrchid);
1647
return Color.FromUInt32((uint)
KnownColor
.MediumPurple);
1658
return Color.FromUInt32((uint)
KnownColor
.MediumSeaGreen);
1669
return Color.FromUInt32((uint)
KnownColor
.MediumSlateBlue);
1680
return Color.FromUInt32((uint)
KnownColor
.MediumSpringGreen);
1691
return Color.FromUInt32((uint)
KnownColor
.MediumTurquoise);
1702
return Color.FromUInt32((uint)
KnownColor
.MediumVioletRed);
1713
return Color.FromUInt32((uint)
KnownColor
.MidnightBlue);
1724
return Color.FromUInt32((uint)
KnownColor
.MintCream);
1735
return Color.FromUInt32((uint)
KnownColor
.MistyRose);
1746
return Color.FromUInt32((uint)
KnownColor
.Moccasin);
1757
return Color.FromUInt32((uint)
KnownColor
.NavajoWhite);
1768
return Color.FromUInt32((uint)
KnownColor
.Navy);
1779
return Color.FromUInt32((uint)
KnownColor
.OldLace);
1790
return Color.FromUInt32((uint)
KnownColor
.Olive);
1801
return Color.FromUInt32((uint)
KnownColor
.OliveDrab);
1812
return Color.FromUInt32((uint)
KnownColor
.Orange);
1823
return Color.FromUInt32((uint)
KnownColor
.OrangeRed);
1834
return Color.FromUInt32((uint)
KnownColor
.Orchid);
1845
return Color.FromUInt32((uint)
KnownColor
.PaleGoldenrod);
1856
return Color.FromUInt32((uint)
KnownColor
.PaleGreen);
1867
return Color.FromUInt32((uint)
KnownColor
.PaleTurquoise);
1878
return Color.FromUInt32((uint)
KnownColor
.PaleVioletRed);
1889
return Color.FromUInt32((uint)
KnownColor
.PapayaWhip);
1900
return Color.FromUInt32((uint)
KnownColor
.PeachPuff);
1911
return Color.FromUInt32((uint)
KnownColor
.Peru);
1922
return Color.FromUInt32((uint)
KnownColor
.Pink);
1933
return Color.FromUInt32((uint)
KnownColor
.Plum);
1944
return Color.FromUInt32((uint)
KnownColor
.PowderBlue);
1955
return Color.FromUInt32((uint)
KnownColor
.Purple);
1966
return Color.FromUInt32((uint)
KnownColor
.Red);
1977
return Color.FromUInt32((uint)
KnownColor
.RosyBrown);
1988
return Color.FromUInt32((uint)
KnownColor
.RoyalBlue);
1999
return Color.FromUInt32((uint)
KnownColor
.SaddleBrown);
2010
return Color.FromUInt32((uint)
KnownColor
.Salmon);
2021
return Color.FromUInt32((uint)
KnownColor
.SandyBrown);
2032
return Color.FromUInt32((uint)
KnownColor
.SeaGreen);
2043
return Color.FromUInt32((uint)
KnownColor
.SeaShell);
2054
return Color.FromUInt32((uint)
KnownColor
.Sienna);
2065
return Color.FromUInt32((uint)
KnownColor
.Silver);
2076
return Color.FromUInt32((uint)
KnownColor
.SkyBlue);
2087
return Color.FromUInt32((uint)
KnownColor
.SlateBlue);
2098
return Color.FromUInt32((uint)
KnownColor
.SlateGray);
2109
return Color.FromUInt32((uint)
KnownColor
.Snow);
2120
return Color.FromUInt32((uint)
KnownColor
.SpringGreen);
2131
return Color.FromUInt32((uint)
KnownColor
.SteelBlue);
2142
return Color.FromUInt32((uint)
KnownColor
.Tan);
2153
return Color.FromUInt32((uint)
KnownColor
.Teal);
2164
return Color.FromUInt32((uint)
KnownColor
.Thistle);
2175
return Color.FromUInt32((uint)
KnownColor
.Tomato);
2186
return Color.FromUInt32((uint)
KnownColor
.Transparent);
2197
return Color.FromUInt32((uint)
KnownColor
.Turquoise);
2208
return Color.FromUInt32((uint)
KnownColor
.Violet);
2219
return Color.FromUInt32((uint)
KnownColor
.Wheat);
2230
return Color.FromUInt32((uint)
KnownColor
.White);
2241
return Color.FromUInt32((uint)
KnownColor
.WhiteSmoke);
2252
return Color.FromUInt32((uint)
KnownColor
.Yellow);
2263
return Color.FromUInt32((uint)
KnownColor
.YellowGreen);
Core\CSharp\System\Windows\Media\Parsers.cs (2)
240
KnownColor
kc = KnownColors.ColorStringToKnownColor(trimmedColor);
242
if (kc ==
KnownColor
.UnknownColor)
Core\CSharp\System\Windows\Media\SolidColorBrush.cs (2)
99
KnownColor
knownColor = KnownColors.ColorStringToKnownColor(stringValue);
117
if (knownColor !=
KnownColor
.UnknownColor)