次の方法で共有


XRCustomUserControlImpl::OnLoaded (Compact 2013)

3/28/2014

This method is the last step in preparing a custom user control for use. You can override this method to get child objects and set up delegates.

Syntax

virtual HRESULT OnLoaded(
    __in IXRDependencyObject *pRoot
);

Parameters

  • pRoot
    [in] Pointer to the Derived base class.

Return Values

Returns an HRESULT that indicates success or failure.

Remarks

This method does not perform any operations in the XRCustomUserControlImpl class.

The XRCustomUserControl::Create internal method calls this method on the Derived user control before returning a pointer to the control to XAML for Windows Embedded. You can override this method in the Derived control to attach delegates or properties.

.NET Framework Equivalent

None.

Requirements

Header

xrcustomcontrol.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XRCustomUserControlImpl<Base,IFace>