Skip to main content

ResourceNodeExtensions Class

Definition​

Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static class ResourceNodeExtensions
View Source
InheritanceObject → ResourceNodeExtensions

Methods​

FindResource(IResourceHost, Object)Finds the specified resource by searching up the logical tree and then global styles.
FindResource(IResourceHost, ThemeVariant, Object)Finds the specified resource by searching up the logical tree and then global styles.
GetResourceObservable(IResourceHost, Object, Func(Object, Object)) 
GetResourceObservable(IResourceProvider, Object, Func(Object, Object)) 
GetResourceObservable(IResourceProvider, Object, ThemeVariant, Func(Object, Object)) 
TryFindResource(IResourceHost, Object, Object)Tries to the specified resource by searching up the logical tree and then global styles.
TryFindResource(IResourceHost, Object, ThemeVariant, Object)Tries to the specified resource by searching up the logical tree and then global styles.
TryGetResource(IResourceHost, Object, Object)Tries to find a resource within the object.

See Also​

Reference​

Avalonia.Controls Namespace