Share via


FocusManagerLostFocusEventArgs.OldFocusedElement Property

Definition

Gets the last focused element.

public:
 property DependencyObject ^ OldFocusedElement { DependencyObject ^ get(); };
DependencyObject OldFocusedElement();
public DependencyObject OldFocusedElement { get; }
var dependencyObject = focusManagerLostFocusEventArgs.oldFocusedElement;
Public ReadOnly Property OldFocusedElement As DependencyObject

Property Value

The last focused element.

Remarks

We recommend using the UIElement focus routed events instead of FocusManager events whenever possible.

Applies to

See also