Partager via


PFN_CREATE_XAMLOBJECT (Compact 2013)

3/28/2014

This callback function is defined by the application. XAML for Windows Embedded calls this function to resolve a reference to an unknown XAML element name by creating a native C++ XAML object. The PFN_CREATE_CONTROL name is a placeholder for the function name that the application defines.

Syntax

typedef HRESULT (CALLBACK *PFN_CREATE_XAMLOBJECT)(
    IXRDependencyObject *pExistingXRDO,
    UINT objectId
);

Parameters

  • pExistingXRDO
    [in] Points to an IXRDependencyObject derived object that is the existing base dependency object.
  • objectId
    [in] Value that represents the identifier of this XAML object.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

This callback function is an input parameter to IXRApplication::RegisterXamlObject. To fill this parameter, you must first implement a callback function that matches the function signature provided in the syntax section and then pass the name of your callback function into RegisterXamlObject.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Functions