ResourceProviderExtensions.

FindResource(IResourceNode, string) Method

Summary

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

Syntax

public static object FindResource(this IResourceNode control, string key)

Parameters

Name Type Description
control IResourceNode The control.
key string The resource key.

Return Value

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