IXRList (Compact 2013)
3/28/2014
This class represents a collection of XRValue objects that you can access individually by specifying an item’s index value.
Syntax
class IXRList : public IXRValueCollection
Inheritance Hierarchy
IXRList
Methods
Method |
Description |
---|---|
Retrieves the item at the specified index in this collection. |
|
Searches for the specified item and retrieves the zero-based index of its first occurrence within this collection. |
|
Inserts an item into this collection at the location that has the specified index value. |
|
Removes the item at the specified index from this collection. |
|
Inserts an item at the specified index in the IXRList collection. |
Thread Safety
Members of this class are thread-safe if you previously had called IXRApplication::CreateHostFromXaml and passed an XRWindowCreateParams structure into pCreateParams that has AllowsMultipleThreadAccess set to true.
Remarks
This class provides indexing capabilities to collections of dependency properties and to attached properties that are passed through methods in XAML for Windows Embedded.
Because this class inherits from IXREnumerable, by using this class you can also enumerate items in an IXRList object. You can use the methods that IXRList inherits from IXRValueCollection to add, remove, and clear items in the collection, and to perform other tasks that require an enumerable collection.
IXRList is an entry in the interface map for _XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager>. Therefore, you can use IUnknown::QueryInterface to request an IXRList interface pointer to an instance of a collection object that inherits from __XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager>.
When you create a class instance, use an IXRListPtr smart pointer instead of a raw interface pointer. For more information about smart pointer aliases, see XRPtr<Interface>.
.NET Framework Equivalent
System.Collections.Generic.IList<T>
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |
See Also
Reference
Classes for Populating UI Elements with Data
XRCollectionChangedCustomEventArgs