Beispiel #1
0
        public static Shape CreatePointShape()
        {
            var ellipse = new System.Windows.Shapes.Ellipse()
            {
                Width           = size,
                Height          = size,
                Fill            = new SolidColorBrush(Colors.Yellow),
                Stroke          = new SolidColorBrush(Colors.Black),
                StrokeThickness = 0.5
            };

            return(ellipse);
        }
Beispiel #2
0
        public static Shape CreateCircleShape()
        {
            var size    = 8;
            var ellipse = new System.Windows.Shapes.Ellipse()
            {
                Width  = size,
                Height = size,
                // Stroke and Fill Color are used by IconBuilder but not by shape creators.
                Stroke          = new SolidColorBrush(Colors.Black),
                StrokeThickness = 1
            };

            return(ellipse);
        }
Beispiel #3
0
        public static Shape CreateDependentPointShape()
        {
            var ellipse = new System.Windows.Shapes.Ellipse()
            {
                Width  = size,
                Height = size,
                //Fill = new SolidColorBrush(Color.FromArgb(255, 240, 240, 240)),
                Fill            = CreateDefaultFillBrush(),
                Stroke          = new SolidColorBrush(Colors.Black),
                StrokeThickness = 0.5
            };

            return(ellipse);
        }