ColorChangedEventArgs Class
Definition
Holds the details of a ColorChanged event.
public class ColorChangedEventArgs
Remarks
HSV color information is intentionally not provided. Use Avalonia.Media.Color.ToHsv to obtain it.
Constructors
| Name | Description |
|---|---|
| ColorChangedEventArgs | Initializes a new instance of the Avalonia.Controls.ColorChangedEventArgs class. |
ColorChangedEventArgs Constructor
Initializes a new instance of the Avalonia.Controls.ColorChangedEventArgs class.
public ColorChangedEventArgs(Avalonia.Media.Color oldColor, Avalonia.Media.Color newColor)
Parameters
oldColor Avalonia.Media.Color
The old/original color from before the change event.
newColor Avalonia.Media.Color
The new/updated color that triggered the change event.
Properties
| Name | Description |
|---|---|
| NewColor | Gets the new/updated color that triggered the change event. |
| OldColor | Gets the old/original color from before the change event. |
NewColor Property
Gets the new/updated color that triggered the change event.
public Avalonia.Media.Color NewColor { get; set; }
OldColor Property
Gets the old/original color from before the change event.
public Avalonia.Media.Color OldColor { get; set; }