ScrollViewer.ViewChanging Evento

Definição

Ocorre quando manipulações como rolagem e zoom fazem com que a exibição seja alterada.

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

Comentários

ScrollViewerViewChangingEventArgs inclui a propriedade IsInertial , que relata se a manipulação que está disparando o evento contém um componente inercial.

Nem toda manipulação subjacente necessariamente disparará esse evento. A lógica ScrollViewer atrasa e consolida eventos intermediários em uma única ocorrência em alguns casos.

Aplica-se a

Confira também