Jaa


DesktopWindowXamlSource.NavigateFocus Method

Definition

Attempts to programmatically give focus to the DesktopWindowXamlSource in the desktop application.

public:
 virtual XamlSourceFocusNavigationResult ^ NavigateFocus(XamlSourceFocusNavigationRequest ^ request) = NavigateFocus;
XamlSourceFocusNavigationResult NavigateFocus(XamlSourceFocusNavigationRequest const& request);
public XamlSourceFocusNavigationResult NavigateFocus(XamlSourceFocusNavigationRequest request);
function navigateFocus(request)
Public Function NavigateFocus (request As XamlSourceFocusNavigationRequest) As XamlSourceFocusNavigationResult

Parameters

request
XamlSourceFocusNavigationRequest

An object that specifies the reason and other optional info for the focus navigation.

Returns

An object that provides data for the focus navigation request.

Remarks

When you add a DesktopWindowXamlSource to your desktop application, by default the DesktopWindowXamlSource does not automatically handle focus navigation via keyboard events such as the Tab or arrow keys. Use this method in conjunction with the GotFocus event to programmatically give focus when the user navigates to the DesktopWindowXamlSource.

Applies to