Expose general control point change event

This commit is contained in:
smoogipoo 2019-12-05 14:38:32 +09:00
parent 3e0f499e72
commit 0149e47673
1 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,17 @@ public class PathControlPoint : IEquatable<PathControlPoint>
/// </summary>
public readonly Bindable<PathType?> Type = new Bindable<PathType?>();
/// <summary>
/// Invoked when any property of this <see cref="PathControlPoint"/> is changed.
/// </summary>
internal event Action Changed;
public PathControlPoint()
{
Position.ValueChanged += _ => Changed?.Invoke();
Type.ValueChanged += _ => Changed?.Invoke();
}
public bool Equals(PathControlPoint other) => Position.Value == other.Position.Value && Type.Value == other.Type.Value;
}
}