Exemplo n.º 1
0
        private void DrawOrange()
        {
            Ellipse ellipse = new Ellipse();

            ellipse.Fill            = Brushes.Orange;
            ellipse.Width           = 90;
            ellipse.Height          = 80;
            ellipse.Stroke          = Brushes.Black;
            ellipse.StrokeThickness = 3;

            MyCanvas.SetX(ellipse, 213);
            MyCanvas.SetY(ellipse, 240);
            MyCanvas.Children.Add(ellipse);
        }
Exemplo n.º 2
0
        private void DrawStand()
        {
            var stand = new Rectangle()
            {
                Width           = 420,
                Height          = 80,
                Fill            = Brushes.BurlyWood,
                Stroke          = Brushes.Black,
                StrokeThickness = 5
            };

            MyCanvas.SetX(stand, 220);
            MyCanvas.SetY(stand, 460);
            MyCanvas.Children.Add(stand);

            stand = new Rectangle()
            {
                Width           = 240,
                Height          = 120,
                Fill            = Brushes.BurlyWood,
                Stroke          = Brushes.Black,
                StrokeThickness = 5
            };
            MyCanvas.SetX(stand, 220);
            MyCanvas.SetY(stand, 555);
            MyCanvas.Children.Add(stand);

            var elp = new Ellipse
            {
                Width           = 60,
                Height          = 60,
                Fill            = Brushes.White,
                Stroke          = Brushes.Black,
                StrokeThickness = 5
            };

            MyCanvas.Children.Add(elp);
            MyCanvas.SetX(elp, 220);
            MyCanvas.SetY(elp, 555);
        }