Export (0) Print
Expand All
Expand Minimize

UIElement.MoveFocus Method

Attempts to move focus from this element to another element. The direction to move focus is specified by a guidance direction, which is interpreted within the organization of the visual parent for this element.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)

public virtual bool MoveFocus (
	TraversalRequest request
)
public boolean MoveFocus (
	TraversalRequest request
)
public function MoveFocus (
	request : TraversalRequest
) : boolean
You cannot use methods in XAML.

Parameters

request

A traversal request, which contains a property that indicates either a mode to traverse in existing tab order, or a direction to move visually.

Return Value

true if the requested traversal was performed; otherwise, false.

Make sure you check the return value of this method. A return value of false might be returned if the traversal runs into a tab stop that is defined by a control's composition, and the traversal request did not request to wrap.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft