Interface IResourceNode
Represents an object that can be queried for resources.
[NotClientImplementable]
public interface IResourceNode
Remarks
The interface represents a common interface for both controls that host resources (IResourceHost) and resource providers such as ResourceDictionary (see IResourceProvider).
Properties
HasResources
Gets a value indicating whether the object has resources.
bool HasResources { get; }
Property Value
Methods
TryGetResource(object, ThemeVariant?, out object?)
Tries to find a resource within the object.
bool TryGetResource(object key, ThemeVariant? theme, out object? value)
Parameters
key
objectThe resource key.
theme
ThemeVariantTheme used to select theme dictionary.
value
objectWhen this method returns, contains the value associated with the specified key, if the key is found; otherwise, null.
Returns
- bool
True if the resource if found, otherwise false.