Summary
Finds the specified resource by searching up the logical tree and then global styles.
- Namespace
- Avalonia
.Controls - Containing Type
- Resource
Node Extensions
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. |