AcornPublishing_wpf/9780735619579-master/AppsCodeMarkup/Chapter 03/ShapeAnEllipse/ShapeAnEllipse.cs
//-----------------------------------------------
// ShapeAnEllipse.cs (c) 2006 by Charles Petzold
//-----------------------------------------------
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Shapes;

namespace Petzold.ShapeAnEllipse
{
    class ShapeAnEllipse : Window
    {
        [STAThread]
        public static void Main()
        {
            Application app = new Application();
            app.Run(new ShapeAnEllipse());
        }
        public ShapeAnEllipse()
        {
            Title = "Shape an Ellipse";

            Ellipse elips = new Ellipse();
            elips.Fill = Brushes.AliceBlue;
            elips.StrokeThickness = 24;     // 1/4 inch
            elips.Stroke = 
                new LinearGradientBrush(Colors.CadetBlue, Colors.Chocolate,
                                        new Point(1, 0), new Point(0, 1));
            Content = elips;
        }
    }
}
