Control.IsTabStop Property

 

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 bool IsTabStop { get; set; }

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>
void IsTabStop(object sender, RoutedEventArgs e)
{
    if (btn13.IsTabStop == true)
    {
        btn13.Content = "Control is a tab stop.";
    }
}

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