Share via


IXRCustomControlFactory::CreateInstance (Compact 2013)

3/28/2014

This method is called by XAML for Windows Embedded to create an instance of the custom user control associated with a control cookie.

Syntax

virtual HRESULT STDMETHODCALLTYPE CreateInstance(
    UINT                  ControlCookie,
    IXRDependencyObject * pExisting, 
    IXRDependencyObject** ppNew
) = 0;

Parameters

  • ppNew
    [out] IXRDependencyObject of the updated version of the C++ custom user control, parsed from the source XAML.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

Provide a custom implementation of the method that creates an instance of an aggregate user control and returns it in ppNew.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRCustomControlFactory