Freigeben über


IObservableModelElement Interface

Definition

Represents a DSL model element that exposes property changing/changed events.

public interface class IObservableModelElement
public interface IObservableModelElement
type IObservableModelElement = interface
Public Interface IObservableModelElement
Derived

Remarks

DSL model elements support property change events through their custom property descriptors.

These model elements are used, for example, by WPF data binding. However, they are not very convenient for programmatic use. Furthermore, if Visual Studio supports the "traditional" INotifyPropertyChanging or INotifyPropertyChanged interfaces, WPF prefers them over the property descriptor for two-way binding which fail because they do not use implicit transactions. Therefore, Visual Studio DSL model elements implement the traditional events without implementing the interfaces themselves.

Events

PropertyChanged

Occurs when a DSL model element has changed.

PropertyChanging

Occurs when a DSL model element is being changed.

Applies to