SectionViewModel.CreateElement Method

Creates an ElementViewModel based on a PropertyDescriptor.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel
Assembly:  Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime (in Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime.dll)

Syntax

'Declaration
Public Overridable Function CreateElement ( _
    parent As ElementViewModel, _
    declaringProperty As PropertyDescriptor _
) As ElementViewModel
public virtual ElementViewModel CreateElement(
    ElementViewModel parent,
    PropertyDescriptor declaringProperty
)
public:
virtual ElementViewModel^ CreateElement(
    ElementViewModel^ parent, 
    PropertyDescriptor^ declaringProperty
)
public function CreateElement(
    parent : ElementViewModel, 
    declaringProperty : PropertyDescriptor
) : ElementViewModel

Parameters

Return Value

The created ElementViewModel or a custom one specified by a ViewModelAttribute.

See Also

SectionViewModel Class

Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel Namespace