다음을 통해 공유


ColorPicker.ColorChanged 이벤트

정의

Color 속성이 변경되면 발생합니다.

UWP에 해당하는 WinUI 2 API: Microsoft.UI.Xaml.Controls.ColorPicker.ColorChanged(Windows 앱 SDK WinUI의 경우 Windows 앱 SDK 네임스페이스 참조).

// 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" .../>

이벤트 유형

적용 대상