XRValueCollection<ItemType> (Compact 2013)

3/28/2014

This C++ template class represents a data source collection and enables you to create an object instance which has functionality that resembles the Component Object Model (COM).

Syntax

template<typename ItemType>
class XRValueCollection : public XRValueCollectionT<IXRList, ItemType>

Inheritance Hierarchy

XRValueCollectionT<IFace,ItemType>

     XRValueCollection<ItemType>

Members

The following table lists any methods that belong to this class.

Methods

Methods

Description

XRValueCollection.CreateInstance(XRValueCollection * *)

Returns an instance of an XRValueCollection<ItemType> object that also supports functionality that resembles the COM and exposes interfaces defined in the inherited interface map to callers of XRObject.QueryInterface(const IID&,void * *).

Thread Safety

Members of this class are not thread safe when you add, remove, update, or clear the objects in the collection. When you are updating objects with new data from the data provider, implement single-threading and block other operations until the update is finished.

Remarks

You can set an instance of the XRValueCollection<ItemType> object as the data context for an IXRItemsControl that displays dynamic data in the UI.

Requirements

Header

XRCollection.h

See Also

Reference

Classes for Populating UI Elements with Data
XRObservableCollection<ItemType>