Share via


IXRItemsPresenter (Windows Embedded CE 6.0)

1/6/2010

This class represents how items are positioned inside a control, usually an IXRItemsControl.

Syntax

class IXRItemsPresenter : public IXRFrameworkElement

Methods

This class provides no new methods. All its methods are inherited from IXRFrameworkElement.

Remarks

An item presenter can be used to specify positioning information, such as how items are aligned horizontally and vertically.

You can access an IXRItemsPresenter object in the control template of a control. It specifies the position in the control's visual tree at which the IXRItemsPanel is added. The IXRItemsPanel object specifies the item panel that is used to determine the layout of items inside the control.

This object is defined in the source XAML for your application.

You can define an item presenter in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.

You can access this object in the visual tree obtaining an IXRItemsControl pointer on a control, and calling the inherited method IXRControl::GetTemplate to obtain an IXRControlTemplate pointer to its control template. This pointer provides access to the XAML element sub-tree for that control template.

Inheritance Hierarchy

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRItemsPresenter

.NET Framework Equivalent

System.Windows.Controls.ItemsPresenter

Requirements

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

See Also

Reference

Classes for UI Element Management