TextBlock.SelectionChanged Evento

Definizione

Si verifica in seguito alla modifica della selezione di testo.

// Register
event_token SelectionChanged(RoutedEventHandler const& handler) const;

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

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

Tipo evento

Commenti

Importante

Se si usa una tastiera per la selezione di testo all'interno di un controllo TextBlock, l'utente deve prima attivare Caret Browsing (con l'app in primo piano, premere F7).

Si applica a