ScrollViewer.ViewChanging Evento

Definizione

Si verifica quando le manipolazioni, ad esempio lo scorrimento e lo zoom, causano la modifica della visualizzazione.

// Register
event_token ViewChanging(EventHandler<ScrollViewerViewChangingEventArgs> const& handler) const;

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

// Revoke with event_revoker
ScrollViewer::ViewChanging_revoker ViewChanging(auto_revoke_t, EventHandler<ScrollViewerViewChangingEventArgs> const& handler) const;
public event System.EventHandler<ScrollViewerViewChangingEventArgs> ViewChanging;
function onViewChanging(eventArgs) { /* Your code */ }
scrollViewer.addEventListener("viewchanging", onViewChanging);
scrollViewer.removeEventListener("viewchanging", onViewChanging);
- or -
scrollViewer.onviewchanging = onViewChanging;
Public Custom Event ViewChanging As EventHandler(Of ScrollViewerViewChangingEventArgs) 
<ScrollViewer ViewChanging="eventhandler"/>

Tipo evento

Commenti

ScrollViewerViewChangingEventArgs include la proprietà IsInertial , che segnala se la manipolazione che sta attivando l'evento contiene un componente inertiale.

Non tutte le manipolazioni sottostanti genereranno necessariamente questo evento. La logica ScrollViewer ritarda e consolida gli eventi intermedi in una singola occorrenza in alcuni casi.

Si applica a

Vedi anche