This topic has not yet been rated - Rate this topic

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)
public abstract class ModelItemDictionary : ModelItem, 
	IDictionary<ModelItem, ModelItem>, ICollection<KeyValuePair<ModelItem, ModelItem>>, 
	IEnumerable<KeyValuePair<ModelItem, ModelItem>>, IDictionary, 
	ICollection, IEnumerable, INotifyCollectionChanged

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.

System.Object
  Microsoft.Windows.Design.Model.ModelItem
    Microsoft.Windows.Design.Model.ModelItemDictionary
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.