IResourceHost.cs 692 B

12345678910111213141516171819202122
  1. using System;
  2. namespace Avalonia.Controls
  3. {
  4. /// <summary>
  5. /// Defines an element that can be queried for resources.
  6. /// </summary>
  7. public interface IResourceHost
  8. {
  9. /// <summary>
  10. /// Tries to find a resource within the element.
  11. /// </summary>
  12. /// <param name="key">The resource key.</param>
  13. /// <param name="value">
  14. /// When this method returns, contains the value associated with the specified key,
  15. /// if the key is found; otherwise, null
  16. /// <returns>
  17. /// True if the resource if found, otherwise false.
  18. /// </returns>
  19. bool TryGetResource(string key, out object value);
  20. }
  21. }