Expand Minimize

Control.IsTabStop property

Applies to Windows and Windows Phone

Gets or sets a value that indicates whether a control is included in tab navigation.

Syntax

Public Property IsTabStop As Boolean

<control IsTabStop="bool"/>

Property value

Type: System.Boolean [.NET] | Platform::Boolean [C++]

true if the control is included in tab navigation; otherwise, false. The default is true.

Remarks

Controlling the tab sequence with a combination of IsTabStop and TabIndex rather than using the default tab sequence is sometimes necessary in order to tune the keyboard accessibility of your UI. For more info, see Implementing keyboard accessibility.

If IsTabStop is false, the control is excluded from tab navigation. In addition, if IsTabStop is false, the control cannot receive input focus. (If you try to set focus programmatically, by calling the Focus method, Focus returns false).

If the reason you don't want the control to be a tab stop is because it's not interactive in your UI, you might want to set IsEnabled to false to make the lack of interaction more obvious. Many controls have predefined visual states that are invoked for IsEnabled=false, such as "graying out" text in labels.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Control
TabNavigation
TabIndex
IsEnabled
Implementing keyboard accessibility

 

 

Show:
© 2014 Microsoft. All rights reserved.