IXRItemsControl (Windows Embedded CE 6.0)

1/6/2010

This class represents a control that can be used to display a collection of items.

Syntax

class IXRItemsControl : public IXRControl

Methods

Method Description

IXRItemsControl::GetItems

Retrieves the collection that provides the content of this control.

IXRItemsControl::GetItemsPanel

Retrieves the template that defines the panel that controls the layout of items in this control.

IXRItemsControl::SetItemsPanel

Sets the template that defines the panel that controls the layout of items in this control.

Remarks

Generally speaking, an IXRItemsControl can be used to display a fixed set of items. There are several controls that inherit from IXRItemsControl that you can use in your application. However, you can also use an IXRItemsControl directly. For example, if you have a group of IXRTextBlock objects that you want to be displayed as a non-selectable list, you can use an IXRItemsControl to contain the text.

You can populate the collection retrieved by IXRItemsControl::GetItems with one or more IXRFrameworkElement child objects.

You can also define an items control 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.

Inheritance Hierarchy

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRControl

                IXRItemsControl

                     IXRSelector

                         IXRListBox

                         IXRComboBox

.NET Framework Equivalent

System.Windows.Controls.ItemsControl

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