|
|
@@ -1,8 +1,6 @@
|
|
|
// Copyright (c) The Avalonia Project. All rights reserved.
|
|
|
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|
|
|
|
|
-using Avalonia.Media.Immutable;
|
|
|
-
|
|
|
namespace Avalonia.Media
|
|
|
{
|
|
|
/// <summary>
|
|
|
@@ -10,857 +8,709 @@ namespace Avalonia.Media
|
|
|
/// </summary>
|
|
|
public static class Brushes
|
|
|
{
|
|
|
- /// <summary>
|
|
|
- /// Initializes static members of the <see cref="Brushes"/> class.
|
|
|
- /// </summary>
|
|
|
- static Brushes()
|
|
|
- {
|
|
|
- AliceBlue = new ImmutableSolidColorBrush(Colors.AliceBlue);
|
|
|
- AntiqueWhite = new ImmutableSolidColorBrush(Colors.AntiqueWhite);
|
|
|
- Aqua = new ImmutableSolidColorBrush(Colors.Aqua);
|
|
|
- Aquamarine = new ImmutableSolidColorBrush(Colors.Aquamarine);
|
|
|
- Azure = new ImmutableSolidColorBrush(Colors.Azure);
|
|
|
- Beige = new ImmutableSolidColorBrush(Colors.Beige);
|
|
|
- Bisque = new ImmutableSolidColorBrush(Colors.Bisque);
|
|
|
- Black = new ImmutableSolidColorBrush(Colors.Black);
|
|
|
- BlanchedAlmond = new ImmutableSolidColorBrush(Colors.BlanchedAlmond);
|
|
|
- Blue = new ImmutableSolidColorBrush(Colors.Blue);
|
|
|
- BlueViolet = new ImmutableSolidColorBrush(Colors.BlueViolet);
|
|
|
- Brown = new ImmutableSolidColorBrush(Colors.Brown);
|
|
|
- BurlyWood = new ImmutableSolidColorBrush(Colors.BurlyWood);
|
|
|
- CadetBlue = new ImmutableSolidColorBrush(Colors.CadetBlue);
|
|
|
- Chartreuse = new ImmutableSolidColorBrush(Colors.Chartreuse);
|
|
|
- Chocolate = new ImmutableSolidColorBrush(Colors.Chocolate);
|
|
|
- Coral = new ImmutableSolidColorBrush(Colors.Coral);
|
|
|
- CornflowerBlue = new ImmutableSolidColorBrush(Colors.CornflowerBlue);
|
|
|
- Cornsilk = new ImmutableSolidColorBrush(Colors.Cornsilk);
|
|
|
- Crimson = new ImmutableSolidColorBrush(Colors.Crimson);
|
|
|
- Cyan = new ImmutableSolidColorBrush(Colors.Cyan);
|
|
|
- DarkBlue = new ImmutableSolidColorBrush(Colors.DarkBlue);
|
|
|
- DarkCyan = new ImmutableSolidColorBrush(Colors.DarkCyan);
|
|
|
- DarkGoldenrod = new ImmutableSolidColorBrush(Colors.DarkGoldenrod);
|
|
|
- DarkGray = new ImmutableSolidColorBrush(Colors.DarkGray);
|
|
|
- DarkGreen = new ImmutableSolidColorBrush(Colors.DarkGreen);
|
|
|
- DarkKhaki = new ImmutableSolidColorBrush(Colors.DarkKhaki);
|
|
|
- DarkMagenta = new ImmutableSolidColorBrush(Colors.DarkMagenta);
|
|
|
- DarkOliveGreen = new ImmutableSolidColorBrush(Colors.DarkOliveGreen);
|
|
|
- DarkOrange = new ImmutableSolidColorBrush(Colors.DarkOrange);
|
|
|
- DarkOrchid = new ImmutableSolidColorBrush(Colors.DarkOrchid);
|
|
|
- DarkRed = new ImmutableSolidColorBrush(Colors.DarkRed);
|
|
|
- DarkSalmon = new ImmutableSolidColorBrush(Colors.DarkSalmon);
|
|
|
- DarkSeaGreen = new ImmutableSolidColorBrush(Colors.DarkSeaGreen);
|
|
|
- DarkSlateBlue = new ImmutableSolidColorBrush(Colors.DarkSlateBlue);
|
|
|
- DarkSlateGray = new ImmutableSolidColorBrush(Colors.DarkSlateGray);
|
|
|
- DarkTurquoise = new ImmutableSolidColorBrush(Colors.DarkTurquoise);
|
|
|
- DarkViolet = new ImmutableSolidColorBrush(Colors.DarkViolet);
|
|
|
- DeepPink = new ImmutableSolidColorBrush(Colors.DeepPink);
|
|
|
- DeepSkyBlue = new ImmutableSolidColorBrush(Colors.DeepSkyBlue);
|
|
|
- DimGray = new ImmutableSolidColorBrush(Colors.DimGray);
|
|
|
- DodgerBlue = new ImmutableSolidColorBrush(Colors.DodgerBlue);
|
|
|
- Firebrick = new ImmutableSolidColorBrush(Colors.Firebrick);
|
|
|
- FloralWhite = new ImmutableSolidColorBrush(Colors.FloralWhite);
|
|
|
- ForestGreen = new ImmutableSolidColorBrush(Colors.ForestGreen);
|
|
|
- Fuchsia = new ImmutableSolidColorBrush(Colors.Fuchsia);
|
|
|
- Gainsboro = new ImmutableSolidColorBrush(Colors.Gainsboro);
|
|
|
- GhostWhite = new ImmutableSolidColorBrush(Colors.GhostWhite);
|
|
|
- Gold = new ImmutableSolidColorBrush(Colors.Gold);
|
|
|
- Goldenrod = new ImmutableSolidColorBrush(Colors.Goldenrod);
|
|
|
- Gray = new ImmutableSolidColorBrush(Colors.Gray);
|
|
|
- Green = new ImmutableSolidColorBrush(Colors.Green);
|
|
|
- GreenYellow = new ImmutableSolidColorBrush(Colors.GreenYellow);
|
|
|
- Honeydew = new ImmutableSolidColorBrush(Colors.Honeydew);
|
|
|
- HotPink = new ImmutableSolidColorBrush(Colors.HotPink);
|
|
|
- IndianRed = new ImmutableSolidColorBrush(Colors.IndianRed);
|
|
|
- Indigo = new ImmutableSolidColorBrush(Colors.Indigo);
|
|
|
- Ivory = new ImmutableSolidColorBrush(Colors.Ivory);
|
|
|
- Khaki = new ImmutableSolidColorBrush(Colors.Khaki);
|
|
|
- Lavender = new ImmutableSolidColorBrush(Colors.Lavender);
|
|
|
- LavenderBlush = new ImmutableSolidColorBrush(Colors.LavenderBlush);
|
|
|
- LawnGreen = new ImmutableSolidColorBrush(Colors.LawnGreen);
|
|
|
- LemonChiffon = new ImmutableSolidColorBrush(Colors.LemonChiffon);
|
|
|
- LightBlue = new ImmutableSolidColorBrush(Colors.LightBlue);
|
|
|
- LightCoral = new ImmutableSolidColorBrush(Colors.LightCoral);
|
|
|
- LightCyan = new ImmutableSolidColorBrush(Colors.LightCyan);
|
|
|
- LightGoldenrodYellow = new ImmutableSolidColorBrush(Colors.LightGoldenrodYellow);
|
|
|
- LightGray = new ImmutableSolidColorBrush(Colors.LightGray);
|
|
|
- LightGreen = new ImmutableSolidColorBrush(Colors.LightGreen);
|
|
|
- LightPink = new ImmutableSolidColorBrush(Colors.LightPink);
|
|
|
- LightSalmon = new ImmutableSolidColorBrush(Colors.LightSalmon);
|
|
|
- LightSeaGreen = new ImmutableSolidColorBrush(Colors.LightSeaGreen);
|
|
|
- LightSkyBlue = new ImmutableSolidColorBrush(Colors.LightSkyBlue);
|
|
|
- LightSlateGray = new ImmutableSolidColorBrush(Colors.LightSlateGray);
|
|
|
- LightSteelBlue = new ImmutableSolidColorBrush(Colors.LightSteelBlue);
|
|
|
- LightYellow = new ImmutableSolidColorBrush(Colors.LightYellow);
|
|
|
- Lime = new ImmutableSolidColorBrush(Colors.Lime);
|
|
|
- LimeGreen = new ImmutableSolidColorBrush(Colors.LimeGreen);
|
|
|
- Linen = new ImmutableSolidColorBrush(Colors.Linen);
|
|
|
- Magenta = new ImmutableSolidColorBrush(Colors.Magenta);
|
|
|
- Maroon = new ImmutableSolidColorBrush(Colors.Maroon);
|
|
|
- MediumAquamarine = new ImmutableSolidColorBrush(Colors.MediumAquamarine);
|
|
|
- MediumBlue = new ImmutableSolidColorBrush(Colors.MediumBlue);
|
|
|
- MediumOrchid = new ImmutableSolidColorBrush(Colors.MediumOrchid);
|
|
|
- MediumPurple = new ImmutableSolidColorBrush(Colors.MediumPurple);
|
|
|
- MediumSeaGreen = new ImmutableSolidColorBrush(Colors.MediumSeaGreen);
|
|
|
- MediumSlateBlue = new ImmutableSolidColorBrush(Colors.MediumSlateBlue);
|
|
|
- MediumSpringGreen = new ImmutableSolidColorBrush(Colors.MediumSpringGreen);
|
|
|
- MediumTurquoise = new ImmutableSolidColorBrush(Colors.MediumTurquoise);
|
|
|
- MediumVioletRed = new ImmutableSolidColorBrush(Colors.MediumVioletRed);
|
|
|
- MidnightBlue = new ImmutableSolidColorBrush(Colors.MidnightBlue);
|
|
|
- MintCream = new ImmutableSolidColorBrush(Colors.MintCream);
|
|
|
- MistyRose = new ImmutableSolidColorBrush(Colors.MistyRose);
|
|
|
- Moccasin = new ImmutableSolidColorBrush(Colors.Moccasin);
|
|
|
- NavajoWhite = new ImmutableSolidColorBrush(Colors.NavajoWhite);
|
|
|
- Navy = new ImmutableSolidColorBrush(Colors.Navy);
|
|
|
- OldLace = new ImmutableSolidColorBrush(Colors.OldLace);
|
|
|
- Olive = new ImmutableSolidColorBrush(Colors.Olive);
|
|
|
- OliveDrab = new ImmutableSolidColorBrush(Colors.OliveDrab);
|
|
|
- Orange = new ImmutableSolidColorBrush(Colors.Orange);
|
|
|
- OrangeRed = new ImmutableSolidColorBrush(Colors.OrangeRed);
|
|
|
- Orchid = new ImmutableSolidColorBrush(Colors.Orchid);
|
|
|
- PaleGoldenrod = new ImmutableSolidColorBrush(Colors.PaleGoldenrod);
|
|
|
- PaleGreen = new ImmutableSolidColorBrush(Colors.PaleGreen);
|
|
|
- PaleTurquoise = new ImmutableSolidColorBrush(Colors.PaleTurquoise);
|
|
|
- PaleVioletRed = new ImmutableSolidColorBrush(Colors.PaleVioletRed);
|
|
|
- PapayaWhip = new ImmutableSolidColorBrush(Colors.PapayaWhip);
|
|
|
- PeachPuff = new ImmutableSolidColorBrush(Colors.PeachPuff);
|
|
|
- Peru = new ImmutableSolidColorBrush(Colors.Peru);
|
|
|
- Pink = new ImmutableSolidColorBrush(Colors.Pink);
|
|
|
- Plum = new ImmutableSolidColorBrush(Colors.Plum);
|
|
|
- PowderBlue = new ImmutableSolidColorBrush(Colors.PowderBlue);
|
|
|
- Purple = new ImmutableSolidColorBrush(Colors.Purple);
|
|
|
- Red = new ImmutableSolidColorBrush(Colors.Red);
|
|
|
- RosyBrown = new ImmutableSolidColorBrush(Colors.RosyBrown);
|
|
|
- RoyalBlue = new ImmutableSolidColorBrush(Colors.RoyalBlue);
|
|
|
- SaddleBrown = new ImmutableSolidColorBrush(Colors.SaddleBrown);
|
|
|
- Salmon = new ImmutableSolidColorBrush(Colors.Salmon);
|
|
|
- SandyBrown = new ImmutableSolidColorBrush(Colors.SandyBrown);
|
|
|
- SeaGreen = new ImmutableSolidColorBrush(Colors.SeaGreen);
|
|
|
- SeaShell = new ImmutableSolidColorBrush(Colors.SeaShell);
|
|
|
- Sienna = new ImmutableSolidColorBrush(Colors.Sienna);
|
|
|
- Silver = new ImmutableSolidColorBrush(Colors.Silver);
|
|
|
- SkyBlue = new ImmutableSolidColorBrush(Colors.SkyBlue);
|
|
|
- SlateBlue = new ImmutableSolidColorBrush(Colors.SlateBlue);
|
|
|
- SlateGray = new ImmutableSolidColorBrush(Colors.SlateGray);
|
|
|
- Snow = new ImmutableSolidColorBrush(Colors.Snow);
|
|
|
- SpringGreen = new ImmutableSolidColorBrush(Colors.SpringGreen);
|
|
|
- SteelBlue = new ImmutableSolidColorBrush(Colors.SteelBlue);
|
|
|
- Tan = new ImmutableSolidColorBrush(Colors.Tan);
|
|
|
- Teal = new ImmutableSolidColorBrush(Colors.Teal);
|
|
|
- Thistle = new ImmutableSolidColorBrush(Colors.Thistle);
|
|
|
- Tomato = new ImmutableSolidColorBrush(Colors.Tomato);
|
|
|
- Transparent = new ImmutableSolidColorBrush(Colors.Transparent);
|
|
|
- Turquoise = new ImmutableSolidColorBrush(Colors.Turquoise);
|
|
|
- Violet = new ImmutableSolidColorBrush(Colors.Violet);
|
|
|
- Wheat = new ImmutableSolidColorBrush(Colors.Wheat);
|
|
|
- White = new ImmutableSolidColorBrush(Colors.White);
|
|
|
- WhiteSmoke = new ImmutableSolidColorBrush(Colors.WhiteSmoke);
|
|
|
- Yellow = new ImmutableSolidColorBrush(Colors.Yellow);
|
|
|
- YellowGreen = new ImmutableSolidColorBrush(Colors.YellowGreen);
|
|
|
- }
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.AliceBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush AliceBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush AliceBlue => KnownColor.AliceBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.AntiqueWhite"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush AntiqueWhite { get; private set; }
|
|
|
+ public static ISolidColorBrush AntiqueWhite => KnownColor.AntiqueWhite.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
- /// Gets an <see cref="Colors.AliceBlue"/> colored brush.
|
|
|
+ /// Gets an <see cref="Colors.Aqua"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Aqua { get; private set; }
|
|
|
+ public static ISolidColorBrush Aqua => KnownColor.Aqua.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Aquamarine"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Aquamarine { get; private set; }
|
|
|
+ public static ISolidColorBrush Aquamarine => KnownColor.Aquamarine.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Azure"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Azure { get; private set; }
|
|
|
+ public static ISolidColorBrush Azure => KnownColor.Azure.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Beige"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Beige { get; private set; }
|
|
|
+ public static ISolidColorBrush Beige => KnownColor.Beige.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Bisque"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Bisque { get; private set; }
|
|
|
+ public static ISolidColorBrush Bisque => KnownColor.Bisque.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Black"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Black { get; private set; }
|
|
|
+ public static ISolidColorBrush Black => KnownColor.Black.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.BlanchedAlmond"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush BlanchedAlmond { get; private set; }
|
|
|
+ public static ISolidColorBrush BlanchedAlmond => KnownColor.BlanchedAlmond.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Blue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Blue { get; private set; }
|
|
|
+ public static ISolidColorBrush Blue => KnownColor.Blue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.BlueViolet"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush BlueViolet { get; private set; }
|
|
|
+ public static ISolidColorBrush BlueViolet => KnownColor.BlueViolet.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Brown"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Brown { get; private set; }
|
|
|
+ public static ISolidColorBrush Brown => KnownColor.Brown.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.BurlyWood"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush BurlyWood { get; private set; }
|
|
|
+ public static ISolidColorBrush BurlyWood => KnownColor.BurlyWood.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.CadetBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush CadetBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush CadetBlue => KnownColor.CadetBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Chartreuse"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Chartreuse { get; private set; }
|
|
|
+ public static ISolidColorBrush Chartreuse => KnownColor.Chartreuse.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Chocolate"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Chocolate { get; private set; }
|
|
|
+ public static ISolidColorBrush Chocolate => KnownColor.Chocolate.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Coral"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Coral { get; private set; }
|
|
|
+ public static ISolidColorBrush Coral => KnownColor.Coral.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.CornflowerBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush CornflowerBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush CornflowerBlue => KnownColor.CornflowerBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Cornsilk"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Cornsilk { get; private set; }
|
|
|
+ public static ISolidColorBrush Cornsilk => KnownColor.Cornsilk.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Crimson"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Crimson { get; private set; }
|
|
|
+ public static ISolidColorBrush Crimson => KnownColor.Crimson.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Cyan"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Cyan { get; private set; }
|
|
|
+ public static ISolidColorBrush Cyan => KnownColor.Cyan.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkBlue => KnownColor.DarkBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkCyan"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkCyan { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkCyan => KnownColor.DarkCyan.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkGoldenrod"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkGoldenrod { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkGoldenrod => KnownColor.DarkGoldenrod.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkGray"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkGray { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkGray => KnownColor.DarkGray.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkGreen => KnownColor.DarkGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkKhaki"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkKhaki { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkKhaki => KnownColor.DarkKhaki.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkMagenta"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkMagenta { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkMagenta => KnownColor.DarkMagenta.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkOliveGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkOliveGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkOliveGreen => KnownColor.DarkOliveGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkOrange"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkOrange { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkOrange => KnownColor.DarkOrange.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkOrchid"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkOrchid { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkOrchid => KnownColor.DarkOrchid.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkRed"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkRed { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkRed => KnownColor.DarkRed.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkSalmon"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkSalmon { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkSalmon => KnownColor.DarkSalmon.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkSeaGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkSeaGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkSeaGreen => KnownColor.DarkSeaGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkSlateBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkSlateBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkSlateBlue => KnownColor.DarkSlateBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkSlateGray"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkSlateGray { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkSlateGray => KnownColor.DarkSlateGray.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkTurquoise"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkTurquoise { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkTurquoise => KnownColor.DarkTurquoise.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DarkViolet"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DarkViolet { get; private set; }
|
|
|
+ public static ISolidColorBrush DarkViolet => KnownColor.DarkViolet.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DeepPink"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DeepPink { get; private set; }
|
|
|
+ public static ISolidColorBrush DeepPink => KnownColor.DeepPink.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DeepSkyBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DeepSkyBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush DeepSkyBlue => KnownColor.DeepSkyBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DimGray"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DimGray { get; private set; }
|
|
|
+ public static ISolidColorBrush DimGray => KnownColor.DimGray.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.DodgerBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush DodgerBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush DodgerBlue => KnownColor.DodgerBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Firebrick"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Firebrick { get; private set; }
|
|
|
+ public static ISolidColorBrush Firebrick => KnownColor.Firebrick.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.FloralWhite"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush FloralWhite { get; private set; }
|
|
|
+ public static ISolidColorBrush FloralWhite => KnownColor.FloralWhite.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.ForestGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush ForestGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush ForestGreen => KnownColor.ForestGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Fuchsia"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Fuchsia { get; private set; }
|
|
|
+ public static ISolidColorBrush Fuchsia => KnownColor.Fuchsia.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Gainsboro"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Gainsboro { get; private set; }
|
|
|
+ public static ISolidColorBrush Gainsboro => KnownColor.Gainsboro.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.GhostWhite"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush GhostWhite { get; private set; }
|
|
|
+ public static ISolidColorBrush GhostWhite => KnownColor.GhostWhite.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Gold"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Gold { get; private set; }
|
|
|
+ public static ISolidColorBrush Gold => KnownColor.Gold.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Goldenrod"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Goldenrod { get; private set; }
|
|
|
+ public static ISolidColorBrush Goldenrod => KnownColor.Goldenrod.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Gray"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Gray { get; private set; }
|
|
|
+ public static ISolidColorBrush Gray => KnownColor.Gray.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Green"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Green { get; private set; }
|
|
|
+ public static ISolidColorBrush Green => KnownColor.Green.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.GreenYellow"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush GreenYellow { get; private set; }
|
|
|
+ public static ISolidColorBrush GreenYellow => KnownColor.GreenYellow.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Honeydew"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Honeydew { get; private set; }
|
|
|
+ public static ISolidColorBrush Honeydew => KnownColor.Honeydew.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.HotPink"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush HotPink { get; private set; }
|
|
|
+ public static ISolidColorBrush HotPink => KnownColor.HotPink.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.IndianRed"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush IndianRed { get; private set; }
|
|
|
+ public static ISolidColorBrush IndianRed => KnownColor.IndianRed.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Indigo"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Indigo { get; private set; }
|
|
|
+ public static ISolidColorBrush Indigo => KnownColor.Indigo.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Ivory"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Ivory { get; private set; }
|
|
|
+ public static ISolidColorBrush Ivory => KnownColor.Ivory.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Khaki"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Khaki { get; private set; }
|
|
|
+ public static ISolidColorBrush Khaki => KnownColor.Khaki.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Lavender"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Lavender { get; private set; }
|
|
|
+ public static ISolidColorBrush Lavender => KnownColor.Lavender.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LavenderBlush"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LavenderBlush { get; private set; }
|
|
|
+ public static ISolidColorBrush LavenderBlush => KnownColor.LavenderBlush.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LawnGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LawnGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush LawnGreen => KnownColor.LawnGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LemonChiffon"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LemonChiffon { get; private set; }
|
|
|
+ public static ISolidColorBrush LemonChiffon => KnownColor.LemonChiffon.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush LightBlue => KnownColor.LightBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightCoral"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightCoral { get; private set; }
|
|
|
+ public static ISolidColorBrush LightCoral => KnownColor.LightCoral.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightCyan"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightCyan { get; private set; }
|
|
|
+ public static ISolidColorBrush LightCyan => KnownColor.LightCyan.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightGoldenrodYellow"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightGoldenrodYellow { get; private set; }
|
|
|
+ public static ISolidColorBrush LightGoldenrodYellow => KnownColor.LightGoldenrodYellow.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightGray"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightGray { get; private set; }
|
|
|
+ public static ISolidColorBrush LightGray => KnownColor.LightGray.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush LightGreen => KnownColor.LightGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightPink"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightPink { get; private set; }
|
|
|
+ public static ISolidColorBrush LightPink => KnownColor.LightPink.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightSalmon"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightSalmon { get; private set; }
|
|
|
+ public static ISolidColorBrush LightSalmon => KnownColor.LightSalmon.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightSeaGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightSeaGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush LightSeaGreen => KnownColor.LightSeaGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightSkyBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightSkyBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush LightSkyBlue => KnownColor.LightSkyBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightSlateGray"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightSlateGray { get; private set; }
|
|
|
+ public static ISolidColorBrush LightSlateGray => KnownColor.LightSlateGray.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightSteelBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightSteelBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush LightSteelBlue => KnownColor.LightSteelBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LightYellow"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LightYellow { get; private set; }
|
|
|
+ public static ISolidColorBrush LightYellow => KnownColor.LightYellow.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Lime"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Lime { get; private set; }
|
|
|
+ public static ISolidColorBrush Lime => KnownColor.Lime.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.LimeGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush LimeGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush LimeGreen => KnownColor.LimeGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Linen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Linen { get; private set; }
|
|
|
+ public static ISolidColorBrush Linen => KnownColor.Linen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Magenta"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Magenta { get; private set; }
|
|
|
+ public static ISolidColorBrush Magenta => KnownColor.Magenta.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Maroon"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Maroon { get; private set; }
|
|
|
+ public static ISolidColorBrush Maroon => KnownColor.Maroon.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MediumAquamarine"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MediumAquamarine { get; private set; }
|
|
|
+ public static ISolidColorBrush MediumAquamarine => KnownColor.MediumAquamarine.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MediumBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MediumBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush MediumBlue => KnownColor.MediumBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MediumOrchid"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MediumOrchid { get; private set; }
|
|
|
+ public static ISolidColorBrush MediumOrchid => KnownColor.MediumOrchid.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MediumPurple"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MediumPurple { get; private set; }
|
|
|
+ public static ISolidColorBrush MediumPurple => KnownColor.MediumPurple.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MediumSeaGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MediumSeaGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush MediumSeaGreen => KnownColor.MediumSeaGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MediumSlateBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MediumSlateBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush MediumSlateBlue => KnownColor.MediumSlateBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MediumSpringGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MediumSpringGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush MediumSpringGreen => KnownColor.MediumSpringGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MediumTurquoise"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MediumTurquoise { get; private set; }
|
|
|
+ public static ISolidColorBrush MediumTurquoise => KnownColor.MediumTurquoise.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MediumVioletRed"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MediumVioletRed { get; private set; }
|
|
|
+ public static ISolidColorBrush MediumVioletRed => KnownColor.MediumVioletRed.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MidnightBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MidnightBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush MidnightBlue => KnownColor.MidnightBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MintCream"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MintCream { get; private set; }
|
|
|
+ public static ISolidColorBrush MintCream => KnownColor.MintCream.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.MistyRose"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush MistyRose { get; private set; }
|
|
|
+ public static ISolidColorBrush MistyRose => KnownColor.MistyRose.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Moccasin"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Moccasin { get; private set; }
|
|
|
+ public static ISolidColorBrush Moccasin => KnownColor.Moccasin.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.NavajoWhite"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush NavajoWhite { get; private set; }
|
|
|
+ public static ISolidColorBrush NavajoWhite => KnownColor.NavajoWhite.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Navy"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Navy { get; private set; }
|
|
|
+ public static ISolidColorBrush Navy => KnownColor.Navy.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.OldLace"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush OldLace { get; private set; }
|
|
|
+ public static ISolidColorBrush OldLace => KnownColor.OldLace.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Olive"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Olive { get; private set; }
|
|
|
+ public static ISolidColorBrush Olive => KnownColor.Olive.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.OliveDrab"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush OliveDrab { get; private set; }
|
|
|
+ public static ISolidColorBrush OliveDrab => KnownColor.OliveDrab.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Orange"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Orange { get; private set; }
|
|
|
+ public static ISolidColorBrush Orange => KnownColor.Orange.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.OrangeRed"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush OrangeRed { get; private set; }
|
|
|
+ public static ISolidColorBrush OrangeRed => KnownColor.OrangeRed.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Orchid"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Orchid { get; private set; }
|
|
|
+ public static ISolidColorBrush Orchid => KnownColor.Orchid.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.PaleGoldenrod"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush PaleGoldenrod { get; private set; }
|
|
|
+ public static ISolidColorBrush PaleGoldenrod => KnownColor.PaleGoldenrod.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.PaleGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush PaleGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush PaleGreen => KnownColor.PaleGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.PaleTurquoise"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush PaleTurquoise { get; private set; }
|
|
|
+ public static ISolidColorBrush PaleTurquoise => KnownColor.PaleTurquoise.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.PaleVioletRed"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush PaleVioletRed { get; private set; }
|
|
|
+ public static ISolidColorBrush PaleVioletRed => KnownColor.PaleVioletRed.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.PapayaWhip"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush PapayaWhip { get; private set; }
|
|
|
+ public static ISolidColorBrush PapayaWhip => KnownColor.PapayaWhip.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.PeachPuff"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush PeachPuff { get; private set; }
|
|
|
+ public static ISolidColorBrush PeachPuff => KnownColor.PeachPuff.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Peru"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Peru { get; private set; }
|
|
|
+ public static ISolidColorBrush Peru => KnownColor.Peru.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Pink"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Pink { get; private set; }
|
|
|
+ public static ISolidColorBrush Pink => KnownColor.Pink.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Plum"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Plum { get; private set; }
|
|
|
+ public static ISolidColorBrush Plum => KnownColor.Plum.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.PowderBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush PowderBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush PowderBlue => KnownColor.PowderBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Purple"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Purple { get; private set; }
|
|
|
+ public static ISolidColorBrush Purple => KnownColor.Purple.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Red"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Red { get; private set; }
|
|
|
+ public static ISolidColorBrush Red => KnownColor.Red.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.RosyBrown"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush RosyBrown { get; private set; }
|
|
|
+ public static ISolidColorBrush RosyBrown => KnownColor.RosyBrown.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.RoyalBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush RoyalBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush RoyalBlue => KnownColor.RoyalBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.SaddleBrown"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush SaddleBrown { get; private set; }
|
|
|
+ public static ISolidColorBrush SaddleBrown => KnownColor.SaddleBrown.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Salmon"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Salmon { get; private set; }
|
|
|
+ public static ISolidColorBrush Salmon => KnownColor.Salmon.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.SandyBrown"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush SandyBrown { get; private set; }
|
|
|
+ public static ISolidColorBrush SandyBrown => KnownColor.SandyBrown.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.SeaGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush SeaGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush SeaGreen => KnownColor.SeaGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.SeaShell"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush SeaShell { get; private set; }
|
|
|
+ public static ISolidColorBrush SeaShell => KnownColor.SeaShell.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Sienna"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Sienna { get; private set; }
|
|
|
+ public static ISolidColorBrush Sienna => KnownColor.Sienna.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Silver"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Silver { get; private set; }
|
|
|
+ public static ISolidColorBrush Silver => KnownColor.Silver.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.SkyBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush SkyBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush SkyBlue => KnownColor.SkyBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.SlateBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush SlateBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush SlateBlue => KnownColor.SlateBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.SlateGray"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush SlateGray { get; private set; }
|
|
|
+ public static ISolidColorBrush SlateGray => KnownColor.SlateGray.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Snow"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Snow { get; private set; }
|
|
|
+ public static ISolidColorBrush Snow => KnownColor.Snow.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.SpringGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush SpringGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush SpringGreen => KnownColor.SpringGreen.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.SteelBlue"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush SteelBlue { get; private set; }
|
|
|
+ public static ISolidColorBrush SteelBlue => KnownColor.SteelBlue.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Tan"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Tan { get; private set; }
|
|
|
+ public static ISolidColorBrush Tan => KnownColor.Tan.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Teal"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Teal { get; private set; }
|
|
|
+ public static ISolidColorBrush Teal => KnownColor.Teal.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Thistle"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Thistle { get; private set; }
|
|
|
+ public static ISolidColorBrush Thistle => KnownColor.Thistle.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Tomato"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Tomato { get; private set; }
|
|
|
+ public static ISolidColorBrush Tomato => KnownColor.Tomato.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Transparent"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Transparent { get; private set; }
|
|
|
+ public static ISolidColorBrush Transparent => KnownColor.Transparent.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Turquoise"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Turquoise { get; private set; }
|
|
|
+ public static ISolidColorBrush Turquoise => KnownColor.Turquoise.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Violet"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Violet { get; private set; }
|
|
|
+ public static ISolidColorBrush Violet => KnownColor.Violet.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Wheat"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Wheat { get; private set; }
|
|
|
+ public static ISolidColorBrush Wheat => KnownColor.Wheat.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.White"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush White { get; private set; }
|
|
|
+ public static ISolidColorBrush White => KnownColor.White.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.WhiteSmoke"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush WhiteSmoke { get; private set; }
|
|
|
+ public static ISolidColorBrush WhiteSmoke => KnownColor.WhiteSmoke.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.Yellow"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush Yellow { get; private set; }
|
|
|
+ public static ISolidColorBrush Yellow => KnownColor.Yellow.ToBrush();
|
|
|
|
|
|
/// <summary>
|
|
|
/// Gets an <see cref="Colors.YellowGreen"/> colored brush.
|
|
|
/// </summary>
|
|
|
- public static ISolidColorBrush YellowGreen { get; private set; }
|
|
|
+ public static ISolidColorBrush YellowGreen => KnownColor.YellowGreen.ToBrush();
|
|
|
}
|
|
|
}
|