TextBlock.SelectionChanged TextBlock.SelectionChanged TextBlock.SelectionChanged TextBlock.SelectionChanged Event

Definition

Occurs when the text selection has changed.

public : event RoutedEventHandler SelectionChanged
// Register
event_token SelectionChanged(RoutedEventHandler const& handler) const;

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

// Revoke with event_revoker
SelectionChanged_revoker SelectionChanged(auto_revoke_t, RoutedEventHandler const& handler) const;
public event RoutedEventHandler SelectionChanged
Public Event SelectionChanged As RoutedEventHandler
<TextBlock SelectionChanged="eventhandler"/>

Remarks

Important

If using a keyboard for text selection within a TextBlock, the user must first activate Caret Browsing (with the app in the foreground, press F7).