Export (0) Print
Expand All

Control.TabIndex Property

Gets or sets a value that determines the order in which elements are logically navigated.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[BindableAttribute(true)] 
public int TabIndex { get; set; }
/** @property */
public int get_TabIndex ()

/** @property */
public void set_TabIndex (int value)

public function get TabIndex () : int

public function set TabIndex (value : int)

<object TabIndex="int" .../>

Property Value

A value that determines the order of logical navigation for a device. The default value is one (1).

Identifier Field

TabIndexProperty

Metadata Flags

None

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

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>


Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft