Create SolidColorBrush from Color - CSharp System.Drawing

CSharp examples for System.Drawing:Color

Description

Create SolidColorBrush from Color

Demo Code


using Windows.UI.Xaml.Media;
using Windows.UI.Core;
using Windows.UI;
using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from   ww  w  .  j  a  v a2  s .  c o m

public class Main{
        public static SolidColorBrush ToBrush(this Color color) {
            return new SolidColorBrush(color);
        }
}

Related Tutorials