AvaloniaDictionary<TKey, TValue> Class

Summary

A notifying dictionary.
Namespace
Avalonia.Collections
Interfaces
  • IDictionary<TKey, TValue>
  • ICollection<KeyValuePair<TKey, TValue>>
  • IEnumerable<KeyValuePair<TKey, TValue>>
  • IDictionary
  • ICollection
  • IEnumerable
  • INotifyCollectionChanged
  • INotifyPropertyChanged
Base Types
  • object
Derived Types
graph BT Type-->Base0["object"] Type-.->Interface0["IDictionary<TKey, TValue>"] Type-.->Interface1["ICollection<KeyValuePair<TKey, TValue>>"] Type-.->Interface2["IEnumerable<KeyValuePair<TKey, TValue>>"] Type-.->Interface3["IDictionary"] Type-.->Interface4["ICollection"] Type-.->Interface5["IEnumerable"] Type-.->Interface6["INotifyCollectionChanged"] Type-.->Interface7["INotifyPropertyChanged"] Type["AvaloniaDictionary<TKey, TValue>"] class Type type-node Derived0["ResourceDictionary"]-->Type click Derived0 "/api/Avalonia.Controls/ResourceDictionary"

Syntax

public class AvaloniaDictionary<TKey, TValue> : IDictionary<TKey, TValue>, 
    ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IDictionary, 
    ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Type Parameters

Name Description
TKey The type of the dictionary key.
TValue The type of the dictionary value.

Constructors

Name Summary
AvaloniaDictionary() Initializes a new instance of the AvaloniaDictionary<TKey, TValue> class.

Events

Name Type Summary
CollectionChanged NotifyCollectionChangedEventHandler
Occurs when the collection changes.
PropertyChanged PropertyChangedEventHandler
Raised when a property on the collection changes.

Properties

Name Value Summary
Count int
IsReadOnly bool
Keys ICollection<TKey>
this[TKey] TValue
Gets or sets the named resource.
Values ICollection<TValue>

Methods