IActiveAware.cs 704 B

12345678910111213141516171819202122
  1. using System;
  2. namespace HandyControl.Interactivity.Commands
  3. {
  4. /// <summary>
  5. /// Interface that defines if the object instance is active
  6. /// and notifies when the activity changes.
  7. /// </summary>
  8. public interface IActiveAware
  9. {
  10. /// <summary>
  11. /// Gets or sets a value indicating whether the object is active.
  12. /// </summary>
  13. /// <value><see langword="true" /> if the object is active; otherwise <see langword="false" />.</value>
  14. bool IsActive { get; set; }
  15. /// <summary>
  16. /// Notifies that the value for <see cref="IsActive"/> property has changed.
  17. /// </summary>
  18. event EventHandler IsActiveChanged;
  19. }
  20. }