IResourceDictionary Interface
An indexed dictionary of resources.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public interface IResourceDictionary : IResourceProvider,
IResourceNode, IDictionary<Object, Object>, ICollection<KeyValuePair<Object, Object>>,
IEnumerable<KeyValuePair<Object, Object>>, IEnumerable
Public Interface IResourceDictionary
Inherits IResourceProvider, IResourceNode, IDictionary(Of Object, Object),
ICollection(Of KeyValuePair(Of Object, Object)), IEnumerable(Of KeyValuePair(Of Object, Object)),
IEnumerable
type IResourceDictionary =
interface
interface IResourceProvider
interface IResourceNode
interface IDictionary<Object, Object>
interface ICollection<KeyValuePair<Object, Object>>
interface IEnumerable<KeyValuePair<Object, Object>>
interface IEnumerable
end
| Implements | IResourceNode, IResourceProvider, ICollection(KeyValuePair(Object, Object)), IDictionary(Object, Object), IEnumerable(KeyValuePair(Object, Object)), IEnumerable |
Properties
| Count | Gets the number of elements contained in the ICollection(T). (Inherited from ICollection(KeyValuePair(Object, Object))) |
| HasResources | Gets a value indicating whether the object has resources. (Inherited from IResourceNode) |
| IsReadOnly | Gets a value indicating whether the ICollection(T) is read-only. (Inherited from ICollection(KeyValuePair(Object, Object))) |
| Item(TKey) | Gets or sets the element with the specified key. (Inherited from IDictionary(Object, Object)) |
| Keys | Gets an ICollection(T) containing the keys of the IDictionary(TKey, TValue). (Inherited from IDictionary(Object, 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. |
| Values | Gets an ICollection(T) containing the values in the IDictionary(TKey, TValue). (Inherited from IDictionary(Object, Object)) |
Methods
| Add(T) | Adds an item to the ICollection(T). (Inherited from ICollection(KeyValuePair(Object, Object))) |
| Add(TKey, TValue) | Adds an element with the provided key and value to the IDictionary(TKey, TValue). (Inherited from IDictionary(Object, Object)) |
| AddOwner(IResourceHost) | Adds an owner to the resource provider. (Inherited from IResourceProvider) |
| Clear() | Removes all items from the ICollection(T). (Inherited from ICollection(KeyValuePair(Object, Object))) |
| Contains(T) | Determines whether the ICollection(T) contains a specific value. (Inherited from ICollection(KeyValuePair(Object, Object))) |
| ContainsKey(TKey) | Determines whether the IDictionary(TKey, TValue) contains an element with the specified key. (Inherited from IDictionary(Object, Object)) |
| CopyTo(T[], Int32) | Copies the elements of the ICollection(T) to an Array, starting at a particular Array index. (Inherited from ICollection(KeyValuePair(Object, Object))) |
| GetEnumerator() | Returns an enumerator that iterates through the collection. (Inherited from IEnumerable(KeyValuePair(Object, Object))) |
| Remove(T) | Removes the first occurrence of a specific object from the ICollection(T). (Inherited from ICollection(KeyValuePair(Object, Object))) |
| Remove(TKey) | Removes the element with the specified key from the IDictionary(TKey, TValue). (Inherited from IDictionary(Object, 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 IDictionary(Object, Object)) |
Events
| OwnerChanged | Raised when the Owner of the resource provider changes. (Inherited from IResourceProvider) |
Extension Methods
| GetResourceObservable(Object, Func(Object, Object)) | (Defined by ResourceNodeExtensions) |
| GetResourceObservable(Object, ThemeVariant, Func(Object, Object)) | (Defined by ResourceNodeExtensions) |