CoreInputView.TryTransferXYFocusToPrimaryView Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to move focus from the application UI to the input pane.
public:
virtual bool TryTransferXYFocusToPrimaryView(Rect origin, CoreInputViewXYFocusTransferDirection direction) = TryTransferXYFocusToPrimaryView;
bool TryTransferXYFocusToPrimaryView(Rect const& origin, CoreInputViewXYFocusTransferDirection const& direction);
public bool TryTransferXYFocusToPrimaryView(Rect origin, CoreInputViewXYFocusTransferDirection direction);
function tryTransferXYFocusToPrimaryView(origin, direction)
Public Function TryTransferXYFocusToPrimaryView (origin As Rect, direction As CoreInputViewXYFocusTransferDirection) As Boolean
Parameters
- origin
- Rect
The rectangle, in client coordinates, representing the previously focused UI element. Specified in device-independent pixels (DIP).
- direction
- CoreInputViewXYFocusTransferDirection
The direction of navigation. If the input pane is not located in the specified direction, this method fails and returns false.
Returns
bool
True, if the input pane received focus. Otherwise, false.
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Remarks
Primary view refers to either of the CoreInputViewKind.Keyboard or CoreInputViewKind.Handwriting views, while CoreInputView can be any of the values from CoreInputViewKind.