TextBoxBase.SelectionChanged Event

 

Occurs when the text selection has changed.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Event SelectionChanged As RoutedEventHandler

Identifier field

SelectionChangedEvent

Routing strategy

Bubbling

Delegate

RoutedEventHandler

The following example demonstrates how to handle the SelectionChanged event by using code.

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

.NET Framework
Available since 3.0
Return to top
Show: