Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 exampleclrnamespace::EmbeddedXamlRuntimeYou must give the namespace the prefix
clrnamespacefor 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>