Exemple #1
0
        public static Brush AsBrush(this Color color)
        {
            if (color != null)
            {
                var uiColor = color.AsColor();
                var brush   = new SolidColorBrush(uiColor);
                return(brush);
            }

            return(null);
        }
Exemple #2
0
 public static SolidColorBrush AsBrush(this Color target)
 {
     return(new SolidColorBrush(target.AsColor()));
 }
Exemple #3
0
 public static AColor ToPlatform(this Color self) => self.AsColor();
Exemple #4
0
 public static AColor ToNative(this Color self) => self.AsColor();