IStyledPropertyAccessor.cs 685 B

12345678910111213141516171819202122
  1. // Copyright (c) The Avalonia Project. All rights reserved.
  2. // Licensed under the MIT license. See licence.md file in the project root for full license information.
  3. using System;
  4. namespace Avalonia
  5. {
  6. /// <summary>
  7. /// Provides a runtime interface for interfacing with <see cref="StyledProperty{TValue}"/>.
  8. /// </summary>
  9. internal interface IStyledPropertyAccessor
  10. {
  11. /// <summary>
  12. /// Gets the default value for the property for the specified type.
  13. /// </summary>
  14. /// <param name="type">The type.</param>
  15. /// <returns>
  16. /// The default value.
  17. /// </returns>
  18. object GetDefaultValue(Type type);
  19. }
  20. }