Control.TabIndex Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
property int TabIndex { int get(); void set(int value); };
[System.ComponentModel.Bindable(true)]
public int TabIndex { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.TabIndex : int with get, set
Public Property TabIndex As Integer
Property Value
A value that determines the order of logical navigation for a device. The default value is Int32.MaxValue.
- Attributes
Examples
The following example sets the tab index of three buttons.
<Button Name="btn9" BorderThickness="5.0"
Click="ChangeBorderThickness" TabIndex="2">
BorderThickness
</Button>
<Button Name="btn10" FontStretch ="Condensed"
Click="ChangeFontStretch" TabIndex="3">
FontStretch
</Button>
<Button Name="btn11" Padding = "5"
Click="ChangePadding" TabIndex="1">
Padding
</Button>
Remarks
A control with a lower tab index receives focus before a control with a higher index.
Dependency Property Information
Identifier field | TabIndexProperty |
Metadata properties set to true |
None |
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.