From 1949998fa10080c22a959b9594549eeab53b16d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Su=C3=A1rez?= Date: Tue, 4 Aug 2020 23:50:17 +0200 Subject: [PATCH] [Core] Unify LinearGradientBrush default values with WPF (#11575) * Unify LinearGradientBrush default values with WPF * Updated unit test fixes #11569 --- Xamarin.Forms.Core.UnitTests/LinearGradientBrushTests.cs | 2 +- Xamarin.Forms.Core/LinearGradientBrush.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Xamarin.Forms.Core.UnitTests/LinearGradientBrushTests.cs b/Xamarin.Forms.Core.UnitTests/LinearGradientBrushTests.cs index edb493cdb..3b5a4c638 100644 --- a/Xamarin.Forms.Core.UnitTests/LinearGradientBrushTests.cs +++ b/Xamarin.Forms.Core.UnitTests/LinearGradientBrushTests.cs @@ -18,7 +18,7 @@ namespace Xamarin.Forms.Core.UnitTests LinearGradientBrush linearGradientBrush = new LinearGradientBrush(); Assert.AreEqual(1.0d, linearGradientBrush.EndPoint.X, "EndPoint.X"); - Assert.AreEqual(0.0d, linearGradientBrush.EndPoint.Y, "EndPoint.Y"); + Assert.AreEqual(1.0d, linearGradientBrush.EndPoint.Y, "EndPoint.Y"); } [Test] diff --git a/Xamarin.Forms.Core/LinearGradientBrush.cs b/Xamarin.Forms.Core/LinearGradientBrush.cs index 2d779a962..228c35e3a 100644 --- a/Xamarin.Forms.Core/LinearGradientBrush.cs +++ b/Xamarin.Forms.Core/LinearGradientBrush.cs @@ -38,7 +38,7 @@ } public static readonly BindableProperty EndPointProperty = BindableProperty.Create( - nameof(EndPoint), typeof(Point), typeof(LinearGradientBrush), new Point(1, 0)); + nameof(EndPoint), typeof(Point), typeof(LinearGradientBrush), new Point(1, 1)); public Point EndPoint {