ColorSpectrum.ColorChanged 事件

定义

在 Color 属性更改时发生。

适用于 UWP 的等效 WinUI 2 APIMicrosoft.UI.Xaml.Controls.Primitives.ColorSpectrum.ColorChangedWindows 应用 SDK中适用于 WinUI 的 (,请参阅Windows 应用 SDK命名空间) 。

// Register
event_token ColorChanged(TypedEventHandler<ColorSpectrum, ColorChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void ColorChanged(event_token const* cookie) const;

// Revoke with event_revoker
ColorSpectrum::ColorChanged_revoker ColorChanged(auto_revoke_t, TypedEventHandler<ColorSpectrum, ColorChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ColorSpectrum,ColorChangedEventArgs> ColorChanged;
function onColorChanged(eventArgs) { /* Your code */ }
colorSpectrum.addEventListener("colorchanged", onColorChanged);
colorSpectrum.removeEventListener("colorchanged", onColorChanged);
- or -
colorSpectrum.oncolorchanged = onColorChanged;
Public Custom Event ColorChanged As TypedEventHandler(Of ColorSpectrum, ColorChangedEventArgs) 

事件类型

适用于