TextBoxBase.SelectionChanged Zdarzenie

Definicja

Występuje po zmianie zaznaczenia tekstu.

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

Typ zdarzenia

Przykłady

W poniższym przykładzie pokazano, jak obsłużyć SelectionChanged zdarzenie przy użyciu kodu.

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

Uwagi

Informacje dotyczące kierowanego zdarzenia

Pole identyfikatora SelectionChangedEvent
Strategia routingu Propagacji
Delegat RoutedEventHandler

Dotyczy