ModelItem.PropertyChanged Event
When overridden in a derived class, occurs when a property on the model changes.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Event PropertyChanged As PropertyChangedEventHandler
public abstract event PropertyChangedEventHandler PropertyChanged
public:
virtual event PropertyChangedEventHandler^ PropertyChanged {
void add (PropertyChangedEventHandler^ value);
void remove (PropertyChangedEventHandler^ value);
}
abstract PropertyChanged : IEvent<PropertyChangedEventHandler,
PropertyChangedEventArgs>
JScript does not support events.
Implements
INotifyPropertyChanged.PropertyChanged
Remarks
This event implements the INotifyPropertyChanged interface. This event can be used to tell when a property on the model changes. It is also useful because INotifyPropertyChanged can be used by the data binding features of Windows Presentation Foundation (WPF).
You should disconnect events from items when you are finished with them. Otherwise, you can prevent the item from being clean up during garbage collection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace