共用方式為


ColorChangedEventArgs 類別

定義

提供 ColorChanged 事件的事件資料。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.ColorChangedEventArgs (在Windows 應用程式 SDK中,請參閱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 APIMicrosoft.UI.Xaml.Controls.ColorChangedEventArgs.NewColor (for WinUI in the Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

OldColor

取得先前在 控制項中選取的色彩。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.ColorChangedEventArgs.OldColor (for WinUI Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

適用於

另請參閱