Export (0) Print
Expand All

IXRCustomUserControl (Compact 2013)

3/28/2014

This class provides a base class for implementing an interface for a custom user control.


class IXRCustomUserControl: public IXRCustomUserControlBase

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRControl

                IXRUserControl

                    IXRCustomUserControlBase

                        IXRCustomUserControl

Method

Description

IXRCustomUserControl::GetXRObject

The method called by XAML for Windows Embedded to retrieve a reference to a XAML for Windows Embedded object for this custom user control.

Members of this class are thread safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

With a custom user control you can implement custom functionality and create a unique appearance that meets the needs of users of your Windows Embedded Compact powered device. You can integrate custom controls with and reuse them in other XAML for Windows Embedded applications.

You can derive custom user controls for XAML for Windows Embedded from this class or from the template wrapper class XRCustomUserControlImpl<Base,IFace>. This wrapper class uses a template parameter that is an interface of type IXRCustomUserControl or a derived type.

Ee504513.note(en-us,WinEmbedded.80).gifNote:
IXRCustomUserControl inherits from IXRDependencyObject, which is a pure virtual class, and supports the methods on IUnknown.

When you create a class instance, use an IXRCustomUserControlPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

Show:
© 2014 Microsoft