ResourceDictionary Class

Summary

An indexed dictionary of resources.
Namespace
Avalonia.Controls
Interfaces
  • IDictionary
  • ICollection
  • INotifyCollectionChanged
  • INotifyPropertyChanged
  • IResourceDictionary
  • IResourceProvider
  • IDictionary<object, object>
  • ICollection<KeyValuePair<object, object>>
  • IEnumerable<KeyValuePair<object, object>>
  • IEnumerable
Base Types
graph TD Base0["AvaloniaDictionary<object, object>"]-->Type Base1["object"]-->Base0 Interface0["IDictionary"]-.->Type Interface1["ICollection"]-.->Type Interface2["INotifyCollectionChanged"]-.->Type Interface3["INotifyPropertyChanged"]-.->Type Interface4["IResourceDictionary"]-.->Type click Interface4 "/api/Avalonia.Controls/IResourceDictionary" Interface5["IResourceProvider"]-.->Type click Interface5 "/api/Avalonia.Controls/IResourceProvider" Interface6["IDictionary<object, object>"]-.->Type Interface7["ICollection<KeyValuePair<object, object>>"]-.->Type Interface8["IEnumerable<KeyValuePair<object, object>>"]-.->Type Interface9["IEnumerable"]-.->Type Type["ResourceDictionary"] class Type type-node

Syntax

public class ResourceDictionary : AvaloniaDictionary<object, object>, IDictionary, ICollection, 
    INotifyCollectionChanged, INotifyPropertyChanged, IResourceDictionary, IResourceProvider, 
    IDictionary<object, object>, ICollection<KeyValuePair<object, object>>, 
    IEnumerable<KeyValuePair<object, object>>, IEnumerable

Constructors

Name Summary
ResourceDictionary() Initializes a new instance of the ResourceDictionary class.

Events

Name Type Summary
ResourcesChanged EventHandler<ResourcesChangedEventArgs>
Raised when resources in the provider are changed.

Properties

Name Value Summary
MergedDictionaries IList<IResourceProvider>
Gets a collection of child resource dictionaries.

Methods

Name Value Summary
TryGetResource(string, object) bool
Tries to find a resource within the provider.