Share via


ContentLink.Focus(FocusState) Method

Definition

Attempts to set the focus on the link.

public:
 virtual bool Focus(FocusState value) = Focus;
bool Focus(FocusState const& value);
public bool Focus(FocusState value);
function focus(value)
Public Function Focus (value As FocusState) As Boolean

Parameters

value
FocusState

Specifies how focus was set, as a value of the enumeration.

Returns

Boolean

bool

true if focus was set to the link, or focus was already on the link. false if the link is not focusable.

Remarks

Important

This API supports content links. The Windows features that enable content links are not available in versions of Windows after Windows 10 version 1903. Content links for XAML text controls will not function in versions of Windows later than version 1903.

For more info, see Control.Focus.

Applies to