Share via


ElementViewModel Members

Include Protected Members
Include Inherited Members

The ElementViewModel type exposes the following members.

Constructors

  Name Description
Ff667663.pubmethod(en-us,PandP.50).gif ElementViewModel Overloaded.

Methods

  Name Description
Ff667663.protmethod(en-us,PandP.50).gif AddChildToView
Adds an element to the ChildElements collection.
Ff667663.pubmethod(en-us,PandP.50).gif AncestorElements
Gets all ancestors ElementViewModel for this ElementViewModel instance.
Ff667663.pubmethod(en-us,PandP.50).gif ChildElement
Retrieves a child element whose property name matches the specified property name.
Ff667663.protmethod(en-us,PandP.50).gif CreateBindable
Creates the element the view binds to. By default it is the element itself.
Ff667663.protmethod(en-us,PandP.50).gif CreateCustomCommands
Creates any custom commands for this element based on it's Attributes.
Ff667663.protmethod(en-us,PandP.50).gif CreateDeleteCommand
Creates a delete CommandModel for this element based on it's Attributes.
Ff667663.protmethod(en-us,PandP.50).gif CreateOtherCommands
Creates commands other than Add, Delete, or custom command specified via attribute, for this element.
Ff667663.pubmethod(en-us,PandP.50).gif Delete
Deletes this element.
Ff667663.pubmethod(en-us,PandP.50).gif DescendentConfigurationsOfType<T>
Returns all descending ElementViewModel instances relative to this ElementViewModel whose ConfigurationType is assignable to T.
Ff667663.pubmethod(en-us,PandP.50).gif DescendentElements Overloaded.
Ff667663.pubmethod(en-us,PandP.50).gif Dispose Overloaded.
Ff667663.pubmethod(en-us,PandP.50).gif ElementViewModelServiceDependencies
Injection Method used to supply additional dependencies to the ElementViewModel.
Ff667663.protmethod(en-us,PandP.50).gif EnsureHasChildElements
Ensures that that the children of this element have been discovered and populated for ChildElements.
Ff667663.pubmethod(en-us,PandP.50).gif Equals (Inherited from Object.)
Ff667663.protmethod(en-us,PandP.50).gif Finalize (Inherited from Object.)
Ff667663.protmethod(en-us,PandP.50).gif GetAllChildElements
Gets all the ElementViewModel instances that are directly contained in this ElementViewModel instance.
Ff667663.protmethod(en-us,PandP.50).gif GetAllCommands
Creates or collections all the commands related to this ElementViewModel.
Ff667663.protmethod(en-us,PandP.50).gif GetAllProperties
Gets all the Property(String) instances that are part of this ElementViewModel instance.
Ff667663.pubmethod(en-us,PandP.50).gif GetHashCode (Inherited from Object.)
Ff667663.protmethod(en-us,PandP.50).gif GetLocalPathPart
Gets a string that can be appended to the parent's Path to compose a Path used to uniquely identify this ElementViewModel.
Ff667663.protmethod(en-us,PandP.50).gif GetPromotedCommands
Gets any commands promoted by their child elements.
Ff667663.pubmethod(en-us,PandP.50).gif GetType (Inherited from Object.)
Ff667663.protmethod(en-us,PandP.50).gif GetValidators
Retrieves the Validator items for this element.
Ff667663.pubmethod(en-us,PandP.50).gif Initialize
Initialization for this element during the Load(IDesignConfigurationSource) or AddSection(String, ConfigurationSection).
Ff667663.protmethod(en-us,PandP.50).gif MemberwiseClone (Inherited from Object.)
Ff667663.protmethod(en-us,PandP.50).gif OnDeleted
Invokes the Deleted event.
Ff667663.protmethod(en-us,PandP.50).gif OnDescendentElementsChanged
Raises the DescendentElementsChanged event.
Ff667663.protmethod(en-us,PandP.50).gif OnElementReferencesChanged
Invokes the ElementReferencesChanged event.
Ff667663.protmethod(en-us,PandP.50).gif OnPropertyChanged
Raises the PropertyChanged event.
Ff667663.pubmethod(en-us,PandP.50).gif Property
Gets the Property(String) with the specified propertyName.
If the property cannot be found, returns nulla null reference (Nothing in Visual Basic).
Ff667663.protmethod(en-us,PandP.50).gif RemoveChildFromView
Removes an element from the ChildElements collection.
Ff667663.pubmethod(en-us,PandP.50).gif Select
Makes this element the selected one on the IApplicationModel.
Ff667663.pubmethod(en-us,PandP.50).gif ToString (Inherited from Object.)
Ff667663.pubmethod(en-us,PandP.50).gif Validate
Validates this ElementViewModel and it's Properties.

Properties

  Name Description
Ff667663.pubproperty(en-us,PandP.50).gif AddCommands
Returns the sub-set of add CommandModel commands from Commands
Ff667663.pubproperty(en-us,PandP.50).gif Attributes
Gets the attributes that where supplied to this ElementViewModel instance.
Ff667663.pubproperty(en-us,PandP.50).gif Bindable
Gets the element the view should bind to. By default it is the element itself.
(Overrides ViewModel.Bindable.)
Ff667663.pubproperty(en-us,PandP.50).gif ChildElements
Gets all ElementViewModel instances contained as direct child elements.
Ff667663.pubproperty(en-us,PandP.50).gif Commands
The CommandModel command associated with this configuration element.
Ff667663.pubproperty(en-us,PandP.50).gif ConfigurationElement
Gets the configuration element instance this ElementViewModel was created for.
Ff667663.pubproperty(en-us,PandP.50).gif ConfigurationType
Gets the type of the configuration element this ElementViewModel was created for.
Ff667663.pubproperty(en-us,PandP.50).gif ContainingSection
Gets the SectionViewModel that contains this ElementViewModel instance.
Ff667663.pubproperty(en-us,PandP.50).gif CustomCommands
Returns the subset of custom CommandModel commands from Commands
Ff667663.pubproperty(en-us,PandP.50).gif DeclaringProperty
Gets the property on the containing configuration element, this ElementViewModel was created for.
Ff667663.pubproperty(en-us,PandP.50).gif DeleteCommand
The delete CommandModel.
Ff667663.pubproperty(en-us,PandP.50).gif ElementId
Gets a unique identifier for this element.
Ff667663.pubproperty(en-us,PandP.50).gif InheritedFromParentConfiguration
Gets or sets a value indicating that this configuratio was inherited from a parent configuration (such as machine.config).
Ff667663.pubproperty(en-us,PandP.50).gif IsElementPathReliableXPath
Gets a value indicating that this Element's Path is reliable
Ff667663.pubproperty(en-us,PandP.50).gif IsNull
Gets a value indicating that the underlying ConfigurationElement is nulla null reference (Nothing in Visual Basic)
Ff667663.pubproperty(en-us,PandP.50).gif IsSelected
Gets or sets the value indicating this element is selected.
Ff667663.pubproperty(en-us,PandP.50).gif Name
Gets the name of the ElementViewModel for use in the user-interface.
Ff667663.pubproperty(en-us,PandP.50).gif NameProperty
Gets the property that provides the 'name' for the element.
Ff667663.pubproperty(en-us,PandP.50).gif NamePropertyInternalValue
Gets the NameProperty internval value as a string representation.
Ff667663.pubproperty(en-us,PandP.50).gif ParentElement
Gets the parent ElementViewModel for this ElementViewModel instance.
Ff667663.pubproperty(en-us,PandP.50).gif Path
Gets a string that can be used to uniquely identify this ElementViewModel.
Ff667663.pubproperty(en-us,PandP.50).gif PromoteCommands
Gets a boolean that indicates whether this ElementViewModel's add commands should be promoted to its parent ElementViewModel.
Ff667663.pubproperty(en-us,PandP.50).gif Properties
Gets all Property(String) instances for this ElementViewModel instance.
Ff667663.pubproperty(en-us,PandP.50).gif PropertiesShown
Gets or sets the value indicating if this element's Properties are shown in the view.
Ff667663.pubproperty(en-us,PandP.50).gif TypePath
Gets the type path information for an ElementViewModel in the form ParentTypePath/ConfigurationElementType.
Ff667663.pubproperty(en-us,PandP.50).gif ValidationResults
The validation results for this ElementViewModel.

Events

  Name Description
Ff667663.pubevent(en-us,PandP.50).gif ChildElementsCollectionChange
Invoked when this element's ChildElements collection is changed.
Ff667663.pubevent(en-us,PandP.50).gif Deleted
Raised when this element is deleted.
Ff667663.pubevent(en-us,PandP.50).gif DescendentElementsChanged
Raised when DescendentElements() change.
Ff667663.pubevent(en-us,PandP.50).gif ElementReferencesChanged
Raised when elements visually related to this element change.
Ff667663.pubevent(en-us,PandP.50).gif PropertyChanged
Occurs when a property value changes.

See Also

ElementViewModel Class

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