Skip to main content

IResourceNode Interface

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Represents an object that can be queried for resources.

public interface IResourceNode

Remarks​

The interface represents a common interface for both controls that host resources (Avalonia.Controls.IResourceHost) and resource providers such as Avalonia.Controls.ResourceDictionary (see Avalonia.Controls.IResourceProvider).

Methods​

NameDescription
TryGetResourceNo summary available.

TryGetResource Method​

public bool TryGetResource(object key, Avalonia.Styling.ThemeVariant theme, object& value)

Parameters​

key object

theme Avalonia.Styling.ThemeVariant

value object&

Returns​

bool

Properties​

NameDescription
HasResourcesGets a value indicating whether the object has resources.

HasResources Property​

Gets a value indicating whether the object has resources.

public bool HasResources { get; set; }