FrameworkContentElement.MoveFocus(TraversalRequest) 方法

定義

將鍵盤焦點從這個項目移至另一個項目。Moves the keyboard focus from this element to another element.

public:
 override bool MoveFocus(System::Windows::Input::TraversalRequest ^ request);
public override sealed bool MoveFocus (System.Windows.Input.TraversalRequest request);
override this.MoveFocus : System.Windows.Input.TraversalRequest -> bool
Public Overrides NotOverridable Function MoveFocus (request As TraversalRequest) As Boolean

參數

request
TraversalRequest

要移動焦點的方向,以列舉型別 (Enumeration) 的值表示。The direction that focus is to be moved, as a value of the enumeration.

傳回

若成功移動焦點則傳回 true,若所指定之方向的目標項目不存在則傳回 falseReturns true if focus is moved successfully; false if the target element in direction as specified does not exist.

適用於

另請參閱