Windows apps
Collapse the table of content
Expand the table of content
Information
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.IsTabStop Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

<BindableAttribute(True)>
Public Property IsTabStop As Boolean

Property Value

Type: System.Boolean

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

If IsTabStop is false, the control is excluded from tab navigation.

Identifier field

IsTabStopProperty

Metadata properties set to true

None

The following example shows how to set the IsTabStop property and how to test whether a control is included in tab navigation.

<Button Name="btn13" IsTabStop="true" Click="IsTabStop">
  IsTabStop
</Button>
Private Sub IsTabStop(ByVal Sender As Object, ByVal e As RoutedEventArgs)

    If (btn13.IsTabStop = True) Then
        btn13.Content = "Control is a tab stop."
    End If

End Sub

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft