Edit

Share via


KeyboardNavigation.SetTabIndex(DependencyObject, Int32) Method

Definition

Set the value of the TabIndex attached property for the specified element.

public:
 static void SetTabIndex(System::Windows::DependencyObject ^ element, int index);
public static void SetTabIndex (System.Windows.DependencyObject element, int index);
static member SetTabIndex : System.Windows.DependencyObject * int -> unit
Public Shared Sub SetTabIndex (element As DependencyObject, index As Integer)

Parameters

element
DependencyObject

The element on which to set the attached property to.

index
Int32

The property value to set.

Exceptions

element is null.

Applies to

See also