TextBlock.Focus(FocusState) TextBlock.Focus(FocusState) TextBlock.Focus(FocusState) TextBlock.Focus(FocusState) Method

Definition

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

public : Platform::Boolean Focus(FocusState value)
bool Focus(FocusState value) const;
public bool Focus(FocusState value)
Public Function Focus(value As FocusState) As bool

Parameters

value
FocusState FocusState

Specifies the desired target for focus state, as a value of the enumeration.

Returns

bool bool

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

Remarks