FocusManager.FindFirstFocusableElement(DependencyObject) Method

Definition

Retrieves the first element that can receive focus based on the specified scope.

C#
public static DependencyObject FindFirstFocusableElement(DependencyObject searchScope);

Parameters

searchScope
DependencyObject

The root object from which to search. If null, the search scope is the current window.

Returns

The first focusable object.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also