IResourceDictionary Interface

An indexed dictionary of resources.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public interface IResourceDictionary : IResourceProvider, 
	IResourceNode, IDictionary<Object, Object>, ICollection<KeyValuePair<Object, Object>>, 
	IEnumerable<KeyValuePair<Object, Object>>, IEnumerable
Implements
IResourceNode, IResourceProvider, ICollectionKeyValuePairObject, Object, IDictionaryObject, Object, IEnumerableKeyValuePairObject, Object, IEnumerable

Properties

CountGets the number of elements contained in the ICollectionT.
(Inherited from ICollectionKeyValuePairObject, Object)
HasResources Gets a value indicating whether the object has resources.
(Inherited from IResourceNode)
IsReadOnlyGets a value indicating whether the ICollectionT is read-only.
(Inherited from ICollectionKeyValuePairObject, Object)
ItemTKeyGets or sets the element with the specified key.
(Inherited from IDictionaryObject, Object)
KeysGets an ICollectionT containing the keys of the IDictionaryTKey, TValue.
(Inherited from IDictionaryObject, Object)
MergedDictionaries Gets a collection of child resource dictionaries.
Owner Gets the owner of the resource provider.
(Inherited from IResourceProvider)
ThemeDictionaries Gets a collection of merged resource dictionaries that are specifically keyed and composed to address theme scenarios.
ValuesGets an ICollectionT containing the values in the IDictionaryTKey, TValue.
(Inherited from IDictionaryObject, Object)

Methods

Add(T)Adds an item to the ICollectionT.
(Inherited from ICollectionKeyValuePairObject, Object)
Add(TKey, TValue)Adds an element with the provided key and value to the IDictionaryTKey, TValue.
(Inherited from IDictionaryObject, Object)
AddOwner(IResourceHost) Adds an owner to the resource provider.
(Inherited from IResourceProvider)
ClearRemoves all items from the ICollectionT.
(Inherited from ICollectionKeyValuePairObject, Object)
Contains(T)Determines whether the ICollectionT contains a specific value.
(Inherited from ICollectionKeyValuePairObject, Object)
ContainsKey(TKey)Determines whether the IDictionaryTKey, TValue contains an element with the specified key.
(Inherited from IDictionaryObject, Object)
CopyTo(T, Int32)Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
(Inherited from ICollectionKeyValuePairObject, Object)
GetEnumeratorReturns an enumerator that iterates through the collection.
(Inherited from IEnumerableKeyValuePairObject, Object)
Remove(T)Removes the first occurrence of a specific object from the ICollectionT.
(Inherited from ICollectionKeyValuePairObject, Object)
Remove(TKey)Removes the element with the specified key from the IDictionaryTKey, TValue.
(Inherited from IDictionaryObject, Object)
RemoveOwner(IResourceHost) Removes a resource provider owner.
(Inherited from IResourceProvider)
TryGetResource(Object, ThemeVariant, Object) Tries to find a resource within the object.
(Inherited from IResourceNode)
TryGetValue(TKey, TValue)Gets the value associated with the specified key.
(Inherited from IDictionaryObject, Object)

Events

OwnerChanged Raised when the Owner of the resource provider changes.
(Inherited from IResourceProvider)

Extension Methods

See Also