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
- parent
Type: Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.ElementViewModel
The parent for the created element.
- declaringProperty
Type: System.ComponentModel.PropertyDescriptor
The property descriptor for the element.
Return Value
The created ElementViewModel or a custom one specified by a ViewModelAttribute.
See Also
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel Namespace