共用方式為


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

適用於

另請參閱