| 12345678910111213141516171819202122 |
- using System;
- namespace Avalonia.Controls
- {
- /// <summary>
- /// Defines an element that can be queried for resources.
- /// </summary>
- public interface IResourceHost
- {
- /// <summary>
- /// Tries to find a resource within the element.
- /// </summary>
- /// <param name="key">The resource key.</param>
- /// <param name="value">
- /// When this method returns, contains the value associated with the specified key,
- /// if the key is found; otherwise, null
- /// <returns>
- /// True if the resource if found, otherwise false.
- /// </returns>
- bool TryGetResource(string key, out object value);
- }
- }
|