Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IXRControl::Focus (Compact 2013)

3/28/2014

This method attempts to transfer the UI focus to this control.


virtual HRESULT STDMETHODCALLTYPE Focus(
    bool* pValue
) = 0;

pValue

[out] Boolean that indicates if UI focus was successfully transferred to this control. This value is true if the control got UI focus, or false if the control is not focusable.

Returns an HRESULT that indicates success or failure.

Calling this method raises the GotFocus or LostFocus events on associated elements if the UI focus was successfully transferred.

In order for a control to be focusable, the following must be true:

System.Windows.Controls.Control.Focus

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

Show:
© 2015 Microsoft