Condividi tramite


ItemsView.SelectionChanged Evento

Definizione

Si verifica quando la selezione di elementi cambia.

// Register
event_token SelectionChanged(TypedEventHandler<ItemsView, ItemsViewSelectionChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ItemsView::SelectionChanged_revoker SelectionChanged(auto_revoke_t, TypedEventHandler<ItemsView, ItemsViewSelectionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ItemsView,ItemsViewSelectionChangedEventArgs> SelectionChanged;
function onSelectionChanged(eventArgs) { /* Your code */ }
itemsView.addEventListener("selectionchanged", onSelectionChanged);
itemsView.removeEventListener("selectionchanged", onSelectionChanged);
- or -
itemsView.onselectionchanged = onSelectionChanged;
Public Custom Event SelectionChanged As TypedEventHandler(Of ItemsView, ItemsViewSelectionChangedEventArgs) 

Tipo evento

Commenti

Questo evento indica che le SelectedItem proprietà e SelectedItems sono state modificate. Ad esempio, questo può essere dovuto a un movimento utente o a una chiamata di metodo, Selectad esempio , DeselectSelectAll, DeselectAll, o InvertSelection.

Si applica a