|
using System.ComponentModel;
namespace ViewableCollectionDemo.ViewModels.ObjectModel
{
/// <summary>
/// This class is the base class for all ViewModel classes.
/// </summary>
public class ObservableObject : INotifyPropertyChanged
{
#region INotifyPropertyChanged Members
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Helper method to raise the PropertyChanged event.
/// </summary>
/// <param name="PropertyName">The name of the property that has been changed, as a string.</param>
protected void RaisePropertyChanged(string PropertyName)
{
if (this.PropertyChanged != null)
{
this.PropertyChanged(this, new PropertyChangedEventArgs(PropertyName));
}
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Sanjay was weaned on VB6, then was dragged kicking and screaming into the world of .NET development, with VB.NET. He was pleasantly surprised, and quickly migrated existing projects to reap the benefits of the massive .NET libraries.
Quite a while ago, he started a pet project that involved fading in and out controls (as well as other animations) in a Windows Forms application. After weeks of hard work, he finally realized that there had to be a better way.
He found WPF.
He changed his main programming language to C#, and has never looked back.