ElementViewModel Members
Include Protected Members
Include Inherited Members
The ElementViewModel type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ElementViewModel | Overloaded. |
Methods
Name | Description | |
---|---|---|
AddChildToView |
Adds an element to the ChildElements collection.
|
|
AncestorElements |
Gets all ancestors ElementViewModel for this ElementViewModel instance.
|
|
ChildElement |
Retrieves a child element whose property name matches the specified property name.
|
|
CreateBindable |
Creates the element the view binds to. By default it is the element itself.
|
|
CreateCustomCommands |
Creates any custom commands for this element based on it's Attributes.
|
|
CreateDeleteCommand |
Creates a delete CommandModel for this element based on it's Attributes.
|
|
CreateOtherCommands |
Creates commands other than Add, Delete, or custom command specified via attribute, for this element.
|
|
Delete |
Deletes this element.
|
|
DescendentConfigurationsOfType<T> |
Returns all descending ElementViewModel instances relative to this ElementViewModel whose ConfigurationType is assignable to T.
|
|
DescendentElements | Overloaded. | |
Dispose | Overloaded. | |
ElementViewModelServiceDependencies |
Injection Method used to supply additional dependencies to the ElementViewModel.
|
|
EnsureHasChildElements |
Ensures that that the children of this element have been discovered and populated for ChildElements.
|
|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetAllChildElements |
Gets all the ElementViewModel instances that are directly contained in this ElementViewModel instance.
|
|
GetAllCommands |
Creates or collections all the commands related to this ElementViewModel.
|
|
GetAllProperties |
Gets all the Property(String) instances that are part of this ElementViewModel instance.
|
|
GetHashCode | (Inherited from Object.) | |
GetLocalPathPart |
Gets a string that can be appended to the parent's Path to compose a Path used to uniquely identify this ElementViewModel. |
|
GetPromotedCommands |
Gets any commands promoted by their child elements.
|
|
GetType | (Inherited from Object.) | |
GetValidators |
Retrieves the Validator items for this element.
|
|
Initialize |
Initialization for this element during the Load(IDesignConfigurationSource) or AddSection(String, ConfigurationSection).
|
|
MemberwiseClone | (Inherited from Object.) | |
OnDeleted |
Invokes the Deleted event.
|
|
OnDescendentElementsChanged |
Raises the DescendentElementsChanged event.
|
|
OnElementReferencesChanged |
Invokes the ElementReferencesChanged event.
|
|
OnPropertyChanged |
Raises the PropertyChanged event.
|
|
Property |
Gets the Property(String) with the specified propertyName. If the property cannot be found, returns nulla null reference (Nothing in Visual Basic). |
|
RemoveChildFromView |
Removes an element from the ChildElements collection.
|
|
Select |
Makes this element the selected one on the IApplicationModel.
|
|
ToString | (Inherited from Object.) | |
Validate |
Validates this ElementViewModel and it's Properties.
|
Properties
Name | Description | |
---|---|---|
AddCommands |
Returns the sub-set of add CommandModel commands from Commands
|
|
Attributes |
Gets the attributes that where supplied to this ElementViewModel instance.
|
|
Bindable |
Gets the element the view should bind to. By default it is the element itself.
(Overrides ViewModel.Bindable.) |
|
ChildElements |
Gets all ElementViewModel instances contained as direct child elements.
|
|
Commands |
The CommandModel command associated with this configuration element.
|
|
ConfigurationElement |
Gets the configuration element instance this ElementViewModel was created for.
|
|
ConfigurationType |
Gets the type of the configuration element this ElementViewModel was created for. |
|
ContainingSection |
Gets the SectionViewModel that contains this ElementViewModel instance.
|
|
CustomCommands |
Returns the subset of custom CommandModel commands from Commands
|
|
DeclaringProperty |
Gets the property on the containing configuration element, this ElementViewModel was created for.
|
|
DeleteCommand |
The delete CommandModel.
|
|
ElementId |
Gets a unique identifier for this element.
|
|
InheritedFromParentConfiguration |
Gets or sets a value indicating that this configuratio was inherited from a parent configuration (such as machine.config).
|
|
IsElementPathReliableXPath |
Gets a value indicating that this Element's Path is reliable
|
|
IsNull |
Gets a value indicating that the underlying ConfigurationElement is nulla null reference (Nothing in Visual Basic)
|
|
IsSelected |
Gets or sets the value indicating this element is selected.
|
|
Name |
Gets the name of the ElementViewModel for use in the user-interface. |
|
NameProperty |
Gets the property that provides the 'name' for the element.
|
|
NamePropertyInternalValue |
Gets the NameProperty internval value as a string representation.
|
|
ParentElement |
Gets the parent ElementViewModel for this ElementViewModel instance.
|
|
Path |
Gets a string that can be used to uniquely identify this ElementViewModel. |
|
PromoteCommands |
Gets a boolean that indicates whether this ElementViewModel's add commands should be promoted to its parent ElementViewModel.
|
|
Properties |
Gets all Property(String) instances for this ElementViewModel instance.
|
|
PropertiesShown |
Gets or sets the value indicating if this element's Properties are shown in the view.
|
|
TypePath |
Gets the type path information for an ElementViewModel in the form ParentTypePath/ConfigurationElementType.
|
|
ValidationResults |
The validation results for this ElementViewModel.
|
Events
Name | Description | |
---|---|---|
ChildElementsCollectionChange |
Invoked when this element's ChildElements collection is changed.
|
|
Deleted |
Raised when this element is deleted.
|
|
DescendentElementsChanged |
Raised when DescendentElements() change.
|
|
ElementReferencesChanged |
Raised when elements visually related to this element change.
|
|
PropertyChanged |
Occurs when a property value changes.
|
See Also
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel Namespace