Freigeben über


ColorPicker.ColorChanged Ereignis

Definition

Tritt auf, wenn sich die Color-Eigenschaft geändert hat.

Entsprechende WinUI 2-API für UWP: Microsoft.UI.Xaml.Controls.ColorPicker.ColorChanged (informationen zu WinUI in der Windows App SDK finden Sie im Windows App SDK Namespaces).

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

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

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

Ereignistyp

Gilt für: