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