Share via


IXRCustomControlFactory::ResolveControlByName (Compact 2013)

3/28/2014

This method resolves a custom user control by name in an XML namespace.

Syntax

virtual HRESULT STDMETHODCALLTYPE ResolveControlByName(
    const WCHAR*  pNamespace,
    const WCHAR*  pName,
    UINT*         pControlCookie,
    IID*          pIID
  ) = 0;

Parameters

  • pNamespace
    [in] Pointer to a string that contains the XML namespace where the custom user control is defined.
  • pName
    [in] Pointer to a string that contains the name of the custom user control.
  • pControlCookie
    [out] Pointer to an implementation-defined 16-bit value with the high-order word masked at 0x0000FFFF.

    Pass this 16-bit value into IXRCustomControlFactory::CreateInstance as the control cookie to create an instance of the custom user control.

  • pIID
    [out] Pointer to an interface ID (IID) for the control.

Return Value

An HRESULT that indicates success or failure.

Remarks

This method retrieves the control cookie that XAML for Windows Embedded uses to create a control instance.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRCustomControlFactory