Ejemplo n.º 1
0
        protected override void OnSetMapSettings(DrawElementMaps control, IMapSettings oldValue, IMapSettings newValue)
        {
            if (newValue == null)
            {
                return;
            }

            Stroke          = Convert(newValue.CourseLineColor);
            StrokeThickness = newValue.CourseLineThickness;
        }
Ejemplo n.º 2
0
        protected override void OnSetMapSettings(DrawElementMaps control, IMapSettings oldValue, IMapSettings newValue)
        {
            if (newValue == null)
            {
                return;
            }

            var binding = new Binding
            {
                Source    = newValue,
                Path      = new PropertyPath(NameHelper <IMapSettings> .Name(v => v.PointLineColor)),
                Converter = new DrawingColorToMediaColorConverter(),
                Mode      = BindingMode.OneWay
            };

            SetBinding(StrokeProperty, binding);
            //Stroke = Convert(newValue.PointLineColor);
            StrokeThickness = newValue.PointLineThickness;
            Radius          = newValue.PointCircleRadius;
        }
Ejemplo n.º 3
0
 protected virtual void OnSetMapSettings(DrawElementMaps control, IMapSettings oldValue, IMapSettings newValue)
 {
 }