ResourceNodeExtensions.

FindResource(IResourceHost, object) Method

Summary

Finds the specified resource by searching up the logical tree and then global styles.
Namespace
Avalonia.Controls
Containing Type
ResourceNodeExtensions

Syntax

public static object? FindResource(this IResourceHost control, object key)

Parameters

Name Type Description
control IResourceHost The control.
key object The resource key.

Return Value

Type Description
object? The resource, or UnsetValue if not found.