Added PropertyHelper

This commit is contained in:
ClemensF 2021-01-17 23:39:20 +01:00
parent 67e9989327
commit 068a9ef8a6
11 changed files with 76 additions and 61 deletions

View file

@ -65,11 +65,7 @@ namespace MapControl
protected override void OnInitialized(EventArgs e)
{
base.OnInitialized(e);
if (Stroke == null)
{
SetBinding(StrokeProperty, GetBinding(nameof(Foreground)));
}
this.ValidateProperty(StrokeProperty, this, nameof(Foreground));
}
public Pen CreatePen()