Example #1
0
        private void Draw()
        {
            var rectangle = new Rectangle
            {
                Width  = System.Windows.SystemParameters.PrimaryScreenWidth,
                Height = height
            };

            rectangle.Fill = new SolidColorBrush()
            {
                Color = ColorTask
            };
            Canvas.SetTop(rectangle, positionTask);
            this.canvas.Children.Add(rectangle);
            search.setPosition((int)System.Windows.SystemParameters.PrimaryScreenWidth - 45, (int)positionTask + 6);
            search.Generate();
            search.Display(canvas);

            exit.setPosition(10, (int)positionTask + 9);
            exit.Generate();
            exit.Display(canvas);
        }