IValueSink.cs 592 B

1234567891011121314151617181920212223
  1. using Avalonia.Data;
  2. #nullable enable
  3. namespace Avalonia.PropertyStore
  4. {
  5. /// <summary>
  6. /// Represents an entity that can receive change notifications in a <see cref="ValueStore"/>.
  7. /// </summary>
  8. internal interface IValueSink
  9. {
  10. void ValueChanged<T>(
  11. StyledPropertyBase<T> property,
  12. BindingPriority priority,
  13. Optional<T> oldValue,
  14. BindingValue<T> newValue);
  15. void Completed<T>(
  16. StyledPropertyBase<T> property,
  17. IPriorityValueEntry entry,
  18. Optional<T> oldValue);
  19. }
  20. }