Share via


ColorChangedEventArgs Class

Definition

Provides event data for the ColorChanged event.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.ColorChangedEventArgs (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public ref class ColorChangedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ColorChangedEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ColorChangedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ColorChangedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ColorChangedEventArgs
Public NotInheritable Class ColorChangedEventArgs
Inheritance
Object Platform::Object IInspectable ColorChangedEventArgs
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Properties

NewColor

Gets the color that is currently selected in the control.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.ColorChangedEventArgs.NewColor (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

OldColor

Gets the color that was previously selected in the control.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.ColorChangedEventArgs.OldColor (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Applies to

See also