ResourceProviderTryGetResource Method
Tries to find a resource within the object.
Namespace: Avalonia.ControlsAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public abstract bool TryGetResource(
Object key,
ThemeVariant? theme,
out Object?? value
)
Public MustOverride Function TryGetResource (
key As Object,
theme As ThemeVariant,
<OutAttribute> ByRef value As Object
) As Boolean
abstract TryGetResource :
key : Object *
theme : ThemeVariant *
value : Object byref -> bool
- key Object
- The resource key.
- theme ThemeVariant
- Theme used to select theme dictionary.
- value Object
-
When this method returns, contains the value associated with the specified key,
if the key is found; otherwise, null.
Boolean
True if the resource if found, otherwise false.
IResourceNodeTryGetResource(Object, ThemeVariant, Object)