ViewModelAttribute Class

Attribute class used to specify a specific View Model derivement or visual representation to be used on the target element.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design
Assembly: Microsoft.Practices.EnterpriseLibrary.Common (in Microsoft.Practices.EnterpriseLibrary.Common.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

public sealed class ViewModelAttribute : Attribute
'Declaration
Public NotInheritable Class ViewModelAttribute
    Inherits Attribute
public ref class ViewModelAttribute sealed : public Attribute

Remarks

The View Model Type should derive from the ElementViewModel or Property class in the Configuration.Design assembly.
As this attribute can be applied to the configuration directly and we dont want to force a dependency on the Configuration.Design assembly
You can specify the View Model Type in a loosy coupled fashion, passing a qualified name of the type.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design.ViewModelAttribute

See Also

ViewModelAttribute Members

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design Namespace