Share via


IXRControl::Focus (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

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

Parameters

  • 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.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

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:

.NET Framework Equivalent

System.Windows.Controls.Control.Focus

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRControl