Share via


FocusManager.FindFirstFocusableElement(DependencyObject) Method

Definition

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

public:
 static DependencyObject ^ FindFirstFocusableElement(DependencyObject ^ searchScope);
 static DependencyObject FindFirstFocusableElement(DependencyObject const& searchScope);
public static DependencyObject FindFirstFocusableElement(DependencyObject searchScope);
function findFirstFocusableElement(searchScope)
Public Shared Function FindFirstFocusableElement (searchScope As DependencyObject) As DependencyObject

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

See also