共用方式為


NotifyPropertyChangedObject Class

Definition

Abstract class implementing INotifyPropertyChanged support.

public abstract class NotifyPropertyChangedObject : System.ComponentModel.INotifyPropertyChanged
type NotifyPropertyChangedObject = class
    interface INotifyPropertyChanged
Public MustInherit Class NotifyPropertyChangedObject
Implements INotifyPropertyChanged
Inheritance
NotifyPropertyChangedObject
Derived
Implements

Constructors

NotifyPropertyChangedObject()

Methods

RaiseNotifyPropertyChangedEvent(String)

Raises the PropertyChanged event.

SetProperty<T>(T, T, String)

Sets the value of a property's backing field and raises PropertyChanged.

If the value of storage is already the same as value, storage is not updated and PropertyChanged is not raised. This comparison is performed with the default EqualityComparer<T> when T is a value types or a string, with ReferenceEquals(Object, Object) otherwise.

This method should be called from inside a property setter.

Events

PropertyChanged

Occurs when a property value changes.

Applies to