Jumar Macato
5 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
2 changed files with
5 additions and
5 deletions
-
src/Avalonia.Visuals/Media/PathFigure.cs
-
src/Avalonia.Visuals/Media/PathGeometry.cs
|
|
|
@ -30,9 +30,9 @@ namespace Avalonia.Media |
|
|
|
|
|
|
|
internal event EventHandler SegmentsInvalidated; |
|
|
|
|
|
|
|
private IDisposable? _segmentsObserver; |
|
|
|
private IDisposable _segmentsDisposable; |
|
|
|
|
|
|
|
private IDisposable? _segmentsPropertiesObserver; |
|
|
|
private IDisposable _segmentsPropertiesObserver; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="PathFigure"/> class.
|
|
|
|
@ -50,10 +50,10 @@ namespace Avalonia.Media |
|
|
|
|
|
|
|
private void OnSegmentsChanged(PathSegments? arg2NewValue) |
|
|
|
{ |
|
|
|
_segmentsObserver?.Dispose(); |
|
|
|
_segmentsDisposable?.Dispose(); |
|
|
|
_segmentsPropertiesObserver?.Dispose(); |
|
|
|
|
|
|
|
_segmentsObserver = _segments?.ForEachItem( |
|
|
|
_segmentsDisposable = _segments?.ForEachItem( |
|
|
|
_ => InvalidateSegments(), |
|
|
|
_ => InvalidateSegments(), |
|
|
|
InvalidateSegments); |
|
|
|
|
|
|
|
@ -120,7 +120,7 @@ namespace Avalonia.Media |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void InvalidateGeometryFromSegments(object _, EventArgs __) |
|
|
|
private void InvalidateGeometryFromSegments(object _, EventArgs __) |
|
|
|
{ |
|
|
|
InvalidateGeometry(); |
|
|
|
} |
|
|
|
|