INotifyPropertyChangedEx.cs 841 B

12345678910111213141516171819202122232425
  1. namespace Caliburn.Micro.Core {
  2. using System.ComponentModel;
  3. /// <summary>
  4. /// Extends <see cref = "INotifyPropertyChanged" /> such that the change event can be raised by external parties.
  5. /// </summary>
  6. public interface INotifyPropertyChangedEx : INotifyPropertyChanged {
  7. /// <summary>
  8. /// Enables/Disables property change notification.
  9. /// </summary>
  10. bool IsNotifying { get; set; }
  11. /// <summary>
  12. /// Notifies subscribers of the property change.
  13. /// </summary>
  14. /// <param name = "propertyName">Name of the property.</param>
  15. void NotifyOfPropertyChange(string propertyName);
  16. /// <summary>
  17. /// Raises a change notification indicating that all bindings should be refreshed.
  18. /// </summary>
  19. void Refresh();
  20. }
  21. }