From 5805eaf0f9a772f5a18d9b0f487d97fee737ffa3 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Tue, 14 Jan 2020 10:36:04 +0100 Subject: [PATCH] Fix compile errors after merge with master. Due to `OnPropertyChanged` signature changing on branch. --- src/Avalonia.Layout/UniformGridLayout.cs | 5 ++--- src/Avalonia.Visuals/Media/DrawingImage.cs | 11 ++++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Avalonia.Layout/UniformGridLayout.cs b/src/Avalonia.Layout/UniformGridLayout.cs index ee1d88940c..54c3ccbb90 100644 --- a/src/Avalonia.Layout/UniformGridLayout.cs +++ b/src/Avalonia.Layout/UniformGridLayout.cs @@ -490,7 +490,6 @@ namespace Avalonia.Layout else if (property == ItemsStretchProperty) { _itemsStretch = newValue.GetValueOrDefault(); - ; } else if (property == MinItemWidthProperty) { @@ -500,9 +499,9 @@ namespace Avalonia.Layout { _minItemHeight = newValue.GetValueOrDefault(); } - else if (args.Property == MaximumRowsOrColumnsProperty) + else if (property == MaximumRowsOrColumnsProperty) { - _maximumRowsOrColumns = (int)args.NewValue; + _maximumRowsOrColumns = newValue.GetValueOrDefault(); } InvalidateLayout(); diff --git a/src/Avalonia.Visuals/Media/DrawingImage.cs b/src/Avalonia.Visuals/Media/DrawingImage.cs index d6ab004dd7..57939bab24 100644 --- a/src/Avalonia.Visuals/Media/DrawingImage.cs +++ b/src/Avalonia.Visuals/Media/DrawingImage.cs @@ -1,4 +1,5 @@ using System; +using Avalonia.Data; using Avalonia.Metadata; using Avalonia.Platform; using Avalonia.Visuals.Media.Imaging; @@ -62,11 +63,15 @@ namespace Avalonia.Media } /// - protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs e) + protected override void OnPropertyChanged( + AvaloniaProperty property, + Optional oldValue, + BindingValue newValue, + BindingPriority priority) { - base.OnPropertyChanged(e); + base.OnPropertyChanged(property, oldValue, newValue, priority); - if (e.Property == DrawingProperty) + if (property == DrawingProperty) { RaiseInvalidated(EventArgs.Empty); }