public StickmanView() { InitializeComponent(); paint = new SKPaint { Style = SKPaintStyle.Stroke, Color = ConstructionColor.ToSKColor(), StrokeWidth = 15 }; bodyPaint = new SKPaint { Style = SKPaintStyle.Stroke, Color = BodyColor.ToSKColor(), StrokeWidth = 10 }; }
protected override void OnPropertyChanged([CallerMemberName] string propertyName = null) { if (propertyName.Equals(nameof(Step))) { CanvasView.InvalidateSurface(); } else if (propertyName.Equals(nameof(ConstructionColor))) { paint.Color = ConstructionColor.ToSKColor(); CanvasView.InvalidateSurface(); } else if (propertyName.Equals(nameof(BodyColor))) { bodyPaint.Color = BodyColor.ToSKColor(); CanvasView.InvalidateSurface(); } base.OnPropertyChanged(propertyName); }