// Portions of this source file are adapted from the WinUI project.
// (https://github.com/microsoft/microsoft-ui-xaml)
//
// Licensed to The Avalonia Project under the MIT License.
using System;
using Avalonia.Media;
namespace Avalonia.Controls
{
///
/// Holds the details of a ColorChanged event.
///
///
/// HSV color information is intentionally not provided.
/// Use to obtain it.
///
public class ColorChangedEventArgs : EventArgs
{
///
/// Initializes a new instance of the class.
///
/// The old/original color from before the change event.
/// The new/updated color that triggered the change event.
public ColorChangedEventArgs(Color oldColor, Color newColor)
{
OldColor = oldColor;
NewColor = newColor;
}
///
/// Gets the old/original color from before the change event.
///
public Color OldColor { get; private set; }
///
/// Gets the new/updated color that triggered the change event.
///
public Color NewColor { get; private set; }
}
}