NotifyPropertyChangedForAttribute

Ecng.ComponentModel

Placed alongside ObservablePropertyAttribute on a backing field: when the generated property changes, the generator also raises PropertyChanged for the listed dependent properties. Mirrors CommunityToolkit.Mvvm.ComponentModel.NotifyPropertyChangedForAttribute.

継承元: Attribute

コンストラクター

NotifyPropertyChangedForAttribute
public NotifyPropertyChangedForAttribute(string propertyName)
notifyPropertyChangedForAttribute = NotifyPropertyChangedForAttribute(propertyName)

Initializes a new instance of the NotifyPropertyChangedForAttribute class.

propertyName
The dependent property whose change notification must be raised.
NotifyPropertyChangedForAttribute
public NotifyPropertyChangedForAttribute(string propertyName, string[] otherPropertyNames)
notifyPropertyChangedForAttribute = NotifyPropertyChangedForAttribute(propertyName, otherPropertyNames)

Initializes a new instance of the NotifyPropertyChangedForAttribute class.

propertyName
The dependent property whose change notification must be raised.
otherPropertyNames
Additional dependent property names.

プロパティ

OtherPropertyNames
public string[] OtherPropertyNames { get; }
value = notifyPropertyChangedForAttribute.OtherPropertyNames

Additional dependent property names.

PropertyName
public string PropertyName { get; }
value = notifyPropertyChangedForAttribute.PropertyName

The primary dependent property name.