IResourceProvider Interface

Represents an object that can be queried for resources but does not appear in the logical tree.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public interface IResourceProvider : IResourceNode
Implements
IResourceNode

Remarks

This interface is implemented by ResourceDictionary, Style and Styles

Properties

HasResources Gets a value indicating whether the object has resources.
(Inherited from IResourceNode)
Owner Gets the owner of the resource provider.

Methods

AddOwner(IResourceHost) Adds an owner to the resource provider.
RemoveOwner(IResourceHost) Removes a resource provider owner.
TryGetResource(Object, ThemeVariant, Object) Tries to find a resource within the object.
(Inherited from IResourceNode)

Events

OwnerChanged Raised when the Owner of the resource provider changes.

Extension Methods

See Also