RefreshVisualizer.RefreshStateChanged Evento
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Ocorre quando o estado do visualizador é alterado.
API equivalente do WinUI 2 para UWP: Microsoft.UI.Xaml.Controls.RefreshVisualizer.RefreshStateChanged (para WinUI no SDK do Aplicativo Windows, consulte os namespaces SDK do Aplicativo Windows).
// Register
event_token RefreshStateChanged(TypedEventHandler<RefreshVisualizer, RefreshStateChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void RefreshStateChanged(event_token const* cookie) const;
// Revoke with event_revoker
RefreshVisualizer::RefreshStateChanged_revoker RefreshStateChanged(auto_revoke_t, TypedEventHandler<RefreshVisualizer, RefreshStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<RefreshVisualizer,RefreshStateChangedEventArgs> RefreshStateChanged;
function onRefreshStateChanged(eventArgs) { /* Your code */ }
refreshVisualizer.addEventListener("refreshstatechanged", onRefreshStateChanged);
refreshVisualizer.removeEventListener("refreshstatechanged", onRefreshStateChanged);
- or -
refreshVisualizer.onrefreshstatechanged = onRefreshStateChanged;
Public Custom Event RefreshStateChanged As TypedEventHandler(Of RefreshVisualizer, RefreshStateChangedEventArgs)