protected override void OnSetMapSettings(DrawElementMaps control, IMapSettings oldValue, IMapSettings newValue) { if (newValue == null) { return; } Stroke = Convert(newValue.CourseLineColor); StrokeThickness = newValue.CourseLineThickness; }
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; }
protected virtual void OnSetMapSettings(DrawElementMaps control, IMapSettings oldValue, IMapSettings newValue) { }