Share via


XRCustomUserControlImpl::Register(const WCHAR*,const WCHAR*) (Compact 2013)

3/28/2014

This method registers a custom user control with XAML for Windows Embedded. Use this version of the method when the custom user control does not have to be created in C++ by the user and is only created in XAML.

Syntax

static HRESULT Register(
    const WCHAR* pControlName, 
    const WCHAR* pNamespace)
    {
        return Register(
                            __uuidof(IXRCustomUserControl),
                            pControlName,
                            pNamespace);
    }

Parameters

  • pControlName
    [in] The XAML name of the control.
  • pNamespace
    [in] The namespace of the control, for example clrnamespace::EmbeddedXamlRuntime

    You must give the namespace the prefix clrnamespace for it to be compatible with XAML for Windows Embedded.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

This method provides a standard method for registering custom controls with XAML for Windows Embedded.

.NET Framework Equivalent

None.

Requirements

Header

xrcustomcontrol.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XRCustomUserControlImpl::Register
XRCustomUserControlImpl<Base,IFace>