IXRCustomUserControl (Compact 2013)

3/28/2014

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

Syntax

class IXRCustomUserControl: public IXRCustomUserControlBase

Inheritance Hierarchy

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRControl

                IXRUserControl

                    IXRCustomUserControlBase

                        IXRCustomUserControl

Methods

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.

Thread Safety

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.

Remarks

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.

Note

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>.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for UI Element Management