Control.TabIndex Property

Definition

Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key.

public:
 property int TabIndex { int get(); void set(int value); };
int TabIndex();

void TabIndex(int value);
public int TabIndex { get; set; }
var int32 = control.tabIndex;
control.tabIndex = int32;
Public Property TabIndex As Integer
<control TabIndex="int"/>

Property Value

Int32

int

A value that determines the order of logical navigation for a device. The default value is MaxValue with the tab order based on declaration order in the XAML or child collections.

Remarks

For UWP apps, initial focus is set to the element with the highest TabIndex that can receive focus. Child elements of container controls are ignored. In a tie, the first element in the visual tree receives focus.

Applies to

See also