WPF C# Tutorial

using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
    public class MainClass : Window
    {
        [STAThread]
        public static void Main()
        {
            Application app = new Application();
            app.Run(new MainClass());
        }
        public MainClass()
        {
            Title = "title";
               
            RadialGradientBrush brush = new RadialGradientBrush();
            Background = brush;
            brush.GradientStops.Add(new GradientStop(Colors.Red, 0));
            brush.GradientStops.Add(new GradientStop(Colors.Orange, .17));
        }
    }