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

namespace Petzold.RenderTheBetterEllipse
{
    public class RenderTheBetterEllipse : Window
    {
        [STAThread]
        public static void Main()
        {
            Application app = new Application();
            app.Run(new RenderTheBetterEllipse());
        }
        public RenderTheBetterEllipse()
        {
            Title = "Render the Better Ellipse";

            BetterEllipse elips = new BetterEllipse();
            elips.Fill = Brushes.AliceBlue;
            elips.Stroke = new Pen(
                new LinearGradientBrush(Colors.CadetBlue, Colors.Chocolate,
                                        new Point(1, 0), new Point(0, 1)),
                24);     // 1/4 inch

            Content = elips;
        }
    }
}
