示例#1
0
        public MainWindow()
        {
            InitializeComponent();
            var foxDraw = new FoxDraw(canvas);

            foxDraw.BackgroundColor(Colors.Crimson);
            //foxDraw.DrawRectangle(10, 10, 150, 50);
            foxDraw.StrokeColor(Colors.Black);
            foxDraw.DrawLine(100, 100, 250, 100);

            foxDraw.StrokeColor(Colors.Azure);
            foxDraw.DrawLine(100, 100, 100, 200);

            foxDraw.StrokeColor(Colors.BlueViolet);
            foxDraw.DrawLine(250, 100, 250, 200);

            foxDraw.StrokeColor(Colors.DeepPink);
            foxDraw.DrawLine(100, 200, 250, 200);
        }