The status property should notify the change, and your product class must implement the INotifyPropertyChanged interface.
Here you have the MVVM Light code snippet for the property; -)
/// <summary> /// The <see cref="MyProperty" /> property name. /// </summary> public const string MyPropertyPropertyName = "MyProperty"; private bool _myProperty = false; /// <summary> /// Gets the MyProperty property. /// TODO Update documentation: /// Changes to that property value raise the PropertyChanged event. /// This property value is broadcasted by the Messenger default instance when it changes. /// </summary> public bool MyProperty { get { return _myProperty; } set { if (_myProperty == value) { return; } var oldValue = _myProperty; _myProperty = value; // Remove one of the two calls below throw new NotImplementedException(); // Update bindings, no broadcast RaisePropertyChanged(MyPropertyPropertyName); // Update bindings and broadcast change using GalaSoft.MvvmLight.Messenging RaisePropertyChanged(MyPropertyPropertyName, oldValue, value, true); } }
zapico
source share