共用方式為


RatingControl.ValueChanged 事件

定義

發生于 Value 屬性已變更時。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.RatingControl.ValueChanged (in Windows 應用程式 SDK,請參閱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"/>

事件類型

適用於