FrameworkContentElement.OnGotFocus Method (RoutedEventArgs)


Class handler for the GotFocus event.

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

protected override void OnGotFocus(
	RoutedEventArgs e


Type: System.Windows.RoutedEventArgs

Event data for the event.

This class handler sets appropriate focus behavior on this element if the event originated from this element. If the event's source was another element in the tree, the handler does nothing.

Override this method in order to change these default focusing behavior on your element.

.NET Framework
Available since 3.0
Return to top