RatingControl.ValueChanged 事件

定义

当 Value 属性发生更改时发生。

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

// Register
event_token ValueChanged(TypedEventHandler<RatingControl, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
RatingControl::ValueChanged_revoker ValueChanged(auto_revoke_t, TypedEventHandler<RatingControl, IInspectable const&> const& handler) const;
public event TypedEventHandler<RatingControl,object> ValueChanged;
function onValueChanged(eventArgs) { /* Your code */ }
ratingControl.addEventListener("valuechanged", onValueChanged);
ratingControl.removeEventListener("valuechanged", onValueChanged);
- or -
ratingControl.onvaluechanged = onValueChanged;
Public Custom Event ValueChanged As TypedEventHandler(Of RatingControl, Object) 
<RatingControl ValueChanged="eventhandler"/>

事件类型

适用于