Control.IsTabStop Control.IsTabStop Control.IsTabStop Control.IsTabStop Property

定义

获取或设置一个值,该值指示是否将某个控件包含在 Tab 导航中。Gets or sets a value that indicates whether a control is included in tab navigation.

public:
 property bool IsTabStop { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
public bool IsTabStop { get; set; }
member this.IsTabStop : bool with get, set
Public Property IsTabStop As Boolean

属性值

如果将该控件包含在 Tab 导航中,则为 true;否则为 falsetrue if the control is included in tab navigation; otherwise, false. 默认值为 trueThe default is true.

示例

下面的示例演示如何设置IsTabStop属性, 以及如何测试控件是否包含在 tab 导航中。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.";
    }
}
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

注解

如果IsTabStopfalse, 则从选项卡导航中排除该控件。If IsTabStop is false, the control is excluded from tab navigation.

依赖项属性信息Dependency Property Information

标识符字段Identifier field IsTabStopProperty
元数据属性设置为trueMetadata properties set to true NoneNone

适用于