// Copyright (c) The Avalonia Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System.Collections.Generic; using Avalonia.Metadata; namespace Avalonia.Media { public abstract class GradientBrush : Brush { public static readonly StyledProperty SpreadMethodProperty = AvaloniaProperty.Register(nameof(SpreadMethod)); public static readonly StyledProperty> GradientStopsProperty = AvaloniaProperty.Register>(nameof(Opacity)); public GradientBrush() { this.GradientStops = new List(); } public GradientSpreadMethod SpreadMethod { get { return GetValue(SpreadMethodProperty); } set { SetValue(SpreadMethodProperty, value); } } [Content] public List GradientStops { get { return GetValue(GradientStopsProperty); } set { SetValue(GradientStopsProperty, value); } } } }