IObservableModelElement Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

public interface IObservableModelElement

The IObservableModelElement type exposes the following members.

  NameDescription
Public eventPropertyChangedOccurs when a DSL model element has changed.
Public eventPropertyChangingOccurs when a DSL model element is being changed.
Top

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft