KeyboardNavigation.SetDirectionalNavigation 方法

定义

设置指定元素的 DirectionalNavigation 附加属性的值。

public:
 static void SetDirectionalNavigation(System::Windows::DependencyObject ^ element, System::Windows::Input::KeyboardNavigationMode mode);
public static void SetDirectionalNavigation (System.Windows.DependencyObject element, System.Windows.Input.KeyboardNavigationMode mode);
static member SetDirectionalNavigation : System.Windows.DependencyObject * System.Windows.Input.KeyboardNavigationMode -> unit
Public Shared Sub SetDirectionalNavigation (element As DependencyObject, mode As KeyboardNavigationMode)

参数

element
DependencyObject

要在其上设置附加属性的元素。

mode
KeyboardNavigationMode

要设置的属性值。

例外

elementnull

适用于

另请参阅