IResourceProvider.

TryGetResource(string, object) Method

Summary

Tries to find a resource within the provider.
Namespace
Avalonia.Controls
Containing Type
IResourceProvider

Syntax

bool TryGetResource(string key, out object value)

Parameters

Name Type Description
key string The resource key.
value object When this method returns, contains the value associated with the specified key, if the key is found; otherwise, null.

Return Value

Type Description
bool True if the resource if found, otherwise false.