Udostępnij za pośrednictwem


Control.TabIndex Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property TabIndex As Integer
public int TabIndex { get; set; }
<control TabIndex="int/>

Property Value

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

Remarks

Dependency property identifier field: TabIndexProperty

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.