次の方法で共有


XRCustomUserControlImpl::OnLoaded (Windows Embedded CE 6.0)

1/6/2010

This method allows you to attach delegates to elements in the newly created visual tree. It is the last step in preparing a custom user control for use. To get child objects and set up delegates, override this method.

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 Silverlight for Windows Embedded. To attach delegates or properties, override this method in the Derived control.

.NET Framework Equivalent

None.

Requirements

Header xrcustomcontrol.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

XRCustomUserControlImpl<Base,IFace>

Other Resources