ModelItem.Source Property

When overridden in a derived class, gets the property that provided this value.

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property Source As ModelProperty
    Get
public abstract ModelProperty Source { get; }
public:
virtual property ModelProperty^ Source {
    ModelProperty^ get () abstract;
}
abstract Source : ModelProperty
abstract function get Source () : ModelProperty

Property Value

Type: Microsoft.Windows.Design.Model.ModelProperty
A ModelProperty that represents the source of this ModelItem.

Remarks

If the item represents the root of the object graph, this property returns nulla null reference (Nothing in Visual Basic). If an item is a member of a collection or a dictionary, the property returned from the Source property is a pseudo-property provided by the collection or dictionary. For other values, the Source property returns the property where the value was actually set. Therefore, if a value is being inherited, Source enables you to determine who originally provided the value.

.NET Framework Security

See Also

Reference

ModelItem Class

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture

Editing Model Architecture