Windows app
摺疊目錄
展開目錄
資訊
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Control.TabIndex 屬性

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

命名空間: System.Windows.Controls
組件: PresentationFramework (在 presentationframework.dll 中)
XML 命名空間:  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" .../>

屬性值

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 Vista、Microsoft Windows XP SP2 和 Windows Server 2003 SP1 支援 Microsoft .NET Framework 3.0。

.NET Framework

支援版本:3.0

社群新增項目

顯示:
© 2016 Microsoft