TextBoxBase.SelectionChanged Ereignis

Definition

Tritt auf, wenn die Textauswahl geändert wurde.

public:
 event System::Windows::RoutedEventHandler ^ SelectionChanged;
public event System.Windows.RoutedEventHandler SelectionChanged;
member this.SelectionChanged : System.Windows.RoutedEventHandler 
Public Custom Event SelectionChanged As RoutedEventHandler 

Ereignistyp

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie das SelectionChanged Ereignis mithilfe von Code behandelt wird.

private void selectChanged(object sender, RoutedEventArgs e)
{
    myTextBox.AppendText("Selection Changed event in myTextBox2 has just occurred.");
}
Private Sub selectChanged(ByVal sender As Object, ByVal e As RoutedEventArgs)
    myTextBox.AppendText("Selection Changed event in myTextBox2 has just occurred.")
End Sub

Hinweise

Informationen zum Routingereignis

Bezeichnerfeld SelectionChangedEvent
Routingstrategie Bubbling
Delegat RoutedEventHandler

Gilt für: