Sic04/FrameworkLocal/UIClient/Caliburn.Micro/Core/INotifyPropertyChangedEx.cs

26 lines
842 B
C#
Raw Normal View History

2022-09-19 09:16:33 +08:00
namespace Caliburn.Micro.Core {
2022-09-19 09:16:33 +08:00
using System.ComponentModel;
/// <summary>
/// Extends <see cref = "INotifyPropertyChanged" /> such that the change event can be raised by external parties.
/// </summary>
public interface INotifyPropertyChangedEx : INotifyPropertyChanged {
/// <summary>
/// Enables/Disables property change notification.
/// </summary>
bool IsNotifying { get; set; }
/// <summary>
/// Notifies subscribers of the property change.
/// </summary>
/// <param name = "propertyName">Name of the property.</param>
void NotifyOfPropertyChange(string propertyName);
/// <summary>
/// Raises a change notification indicating that all bindings should be refreshed.
/// </summary>
void Refresh();
}
}