IXRApplication::RegisterControlFactory (Compact 2013)
3/28/2014
This method registers a custom factory object to create instances of custom user controls in the specified XML namespace.
Syntax
virtual HRESULT STDMETHODCALLTYPE RegisterControlFactory(
__in LPCWCHAR pNamespace,
__in IXRCustomControlFactory* pFactory
) = 0;
Parameters
- pNamespace
[in] Pointer to a string that contains the XML namespace of the custom user controls that you want to create by using a factory object.
- pFactory
[in] Pointer to the IXRCustomControlFactory factory object that you implemented to create instances of controls that belong to the namespace in pNamespace.
Return Value
An HRESULT returns S_OK if successful; otherwise, returns a non-zero error code.
Remarks
Use this method to register a custom control factory that will be used to create instances of IXRCustomUserControl objects.
.NET Framework Equivalent
None.
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |