ScrollViewer.ViewChanging Evento

Definición

Se produce cuando las manipulaciones, como el desplazamiento y el zoom, hacen que la vista cambie.

// 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 de evento

Comentarios

ScrollViewerViewChangingEventArgs incluye la propiedad IsInertial , que informa de si la manipulación que activa el evento contiene un componente inercial.

No todas las manipulaciones subyacentes desencadenarán necesariamente este evento. La lógica scrollViewer retrasa y consolida los eventos intermedios en una sola aparición en algunos casos.

Se aplica a

Consulte también