英語で読む

次の方法で共有


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

[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property, AllowMultiple = false)]
public sealed class ViewModelAttribute : 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