Table of Contents

Interface IResourceProvider

Namespace
Avalonia.Controls
Assembly
Avalonia.Base.dll

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

public interface IResourceProvider : IResourceNode
Inherited Members
Extension Methods

Remarks

This interface is implemented by ResourceDictionary, Style and Styles

Properties

Owner

Gets the owner of the resource provider.

IResourceHost? Owner { get; }

Property Value

IResourceHost

Remarks

If multiple owners are added, returns the first.

Methods

AddOwner(IResourceHost)

Adds an owner to the resource provider.

void AddOwner(IResourceHost owner)

Parameters

owner IResourceHost

The owner.

RemoveOwner(IResourceHost)

Removes a resource provider owner.

void RemoveOwner(IResourceHost owner)

Parameters

owner IResourceHost

The owner.

Events

OwnerChanged

Raised when the Owner of the resource provider changes.

event EventHandler? OwnerChanged

Event Type

EventHandler