Beispiel #1
0
        protected override void OnSetMapSettings(DrawElementMaps control, IMapSettings oldValue, IMapSettings newValue)
        {
            if (newValue == null)
            {
                return;
            }

            Stroke          = Convert(newValue.CourseLineColor);
            StrokeThickness = newValue.CourseLineThickness;
        }
Beispiel #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;
        }
Beispiel #3
0
 protected virtual void OnSetMapSettings(DrawElementMaps control, IMapSettings oldValue, IMapSettings newValue)
 {
 }