ResourceDictionary Class

Summary

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

Syntax

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

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(object, object) bool
Tries to find a resource within the provider.

Extension Methods

Name Value Summary
FindResource(object) object
Finds the specified resource by searching up the logical tree and then global styles.
GetResourceObservable(object) IObservable<object>
TryFindResource(object, object) bool
Tries to the specified resource by searching up the logical tree and then global styles.