ColorChangedEventArgs 类

定义

提供 ColorChanged 事件的事件数据。

适用于 UWP 的等效 WinUI 2 API:Windows 应用 SDK中 WinUI 的 Microsoft.UI.Xaml.Controls.ColorChangedEventArgs (,请参阅Windows 应用 SDK命名空间) 。

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
继承
Object Platform::Object IInspectable ColorChangedEventArgs
属性

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)

属性

NewColor

获取控件中当前选择的颜色。

适用于 UWP 的等效 WinUI 2 APIWindows 应用 SDK中 WinUI 的 Microsoft.UI.Xaml.Controls.ColorChangedEventArgs.NewColor (,请参阅Windows 应用 SDK命名空间) 。

OldColor

获取以前在 控件中选择的颜色。

适用于 UWP 的等效 WinUI 2 APIWindows 应用 SDK中 WinUI 的 Microsoft.UI.Xaml.Controls.ColorChangedEventArgs.OldColor (,请参阅 ) Windows 应用 SDK命名空间

适用于

另请参阅