ModelItemDictionary Class
Implements key/value dictionary support for ModelItem objects.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustInherit Class ModelItemDictionary _
Inherits ModelItem _
Implements IDictionary(Of ModelItem, ModelItem), _
ICollection(Of KeyValuePair(Of ModelItem, ModelItem)), IEnumerable(Of KeyValuePair(Of ModelItem, ModelItem)), _
IDictionary, ICollection, IEnumerable, INotifyCollectionChanged
'Usage
Dim instance As ModelItemDictionary
public abstract class ModelItemDictionary : ModelItem,
IDictionary<ModelItem, ModelItem>, ICollection<KeyValuePair<ModelItem, ModelItem>>,
IEnumerable<KeyValuePair<ModelItem, ModelItem>>, IDictionary,
ICollection, IEnumerable, INotifyCollectionChanged
public ref class ModelItemDictionary abstract : public ModelItem,
IDictionary<ModelItem^, ModelItem^>, ICollection<KeyValuePair<ModelItem^, ModelItem^>>,
IEnumerable<KeyValuePair<ModelItem^, ModelItem^>>, IDictionary,
ICollection, IEnumerable, INotifyCollectionChanged
public abstract class ModelItemDictionary extends ModelItem implements IDictionary<ModelItem, ModelItem>, ICollection<KeyValuePair<ModelItem, ModelItem>>, IEnumerable<KeyValuePair<ModelItem, ModelItem>>, IDictionary, ICollection, IEnumerable, INotifyCollectionChanged
Remarks
The ModelItemDictionary class derives from ModelItem and implements support for a dictionary of key/value pairs. Both the keys and values are items. ModelItemDictionary defines an attached property Key, which is adds to all items contained in the dictionary. The data type of the Key property is ModelItem and it is marked as non-browsable and non-serializable. In addition to the Key property, ModelItemDictionary also returns an Item property from its properties collection just like ModelItemCollection. ModelItemDictionary reuses the ModelProperty defined on ModelItemCollection. The value returned is an enumeration of the values in the dictionary. The Source property of all items in the dictionary refers to this Item property.
Inheritance Hierarchy
System.Object
Microsoft.Windows.Design.Model.ModelItem
Microsoft.Windows.Design.Model.ModelItemDictionary
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Windows.Design.Model Namespace