Delen via


TextBlock.Focus(FocusState) Method

Definition

Focuses the TextBlock, as if it were a conventionally focusable control.

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 the desired target for focus state, as a value of the enumeration.

Returns

Boolean

bool

true if focus was set to the TextBlock, or focus was already there. false if the TextBlock is not focusable.

Remarks

Applies to