ViewModelAttribute Class

Attribute class used to specify a specific View Model derivement or visual representation to be used on the target element. TODO: add more information here, possibly a reference to other documentation.

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Property, AllowMultiple := False)> _
Public NotInheritable Class ViewModelAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property, AllowMultiple = false)]
public sealed class ViewModelAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Property, AllowMultiple = false)]
public ref class ViewModelAttribute sealed : public Attribute
public final class ViewModelAttribute extends 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