Class DataTemplatesDictionary
Represents a collection that is used for storing date/template pairs.
Inheritance
System.Object
DataTemplatesDictionary
Implements
System.Collections.Specialized.INotifyCollectionChanged
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class DataTemplatesDictionary : Hashtable, INotifyCollectionChanged
Constructors
DataTemplatesDictionary()
Declaration
public DataTemplatesDictionary()
Properties
Item[Object]
Implements indexer logic.
Declaration
public override object this[object key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | String representation of the date parameter. |
Property Value
Type | Description |
---|---|
System.Object | The System.Windows.DataTemplate composition of the entry. |
Methods
Add(Object, Object)
Adds new entry to hash table
Declaration
public override void Add(object key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | String representation of date parameter. |
System.Object | value | The DataTemplateItem object. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The key must be valid a string representation of System.DateTime value. |
System.NotSupportedException | Collection is used for DataTemplateItem items only. |
System.ArgumentException | Template value of DataTemplateItem parameter cannot be null. |
Clear()
Removes all elements from the hash table
Declaration
public override void Clear()
Remove(Object)
Removes entry by the key.
Declaration
public override void Remove(object key)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | String representation of the date parameter. |
Events
CollectionChanged
Occurs when the collection changes.
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
---|
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
Implements
System.Collections.Specialized.INotifyCollectionChanged