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

焦点要移动的方向,作为一个枚举值。The direction that focus is to be moved, as a value of the enumeration.

返回

Boolean

如果焦点成功移动,则返回 true;如果指定方向上的目标元素不存在,则返回 falseReturns true if focus is moved successfully; false if the target element in direction as specified does not exist.

适用于

另请参阅