TabIndex Property

Control.TabIndex Property


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

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public int TabIndex { get; set; }

Property Value

Type: System.Int32

A value that determines the order of logical navigation for a device. The default value is Int32.MaxValue.

A control with a lower tab index receives focus before a control with a higher index.

Identifier field


Metadata properties set to true


The following example sets the tab index of three buttons.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft