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