Class ViewModelTypeAttribute
Used by custom views to inform the document builder of the type of view model to instantiate.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class ViewModelTypeAttribute : Attribute, _Attribute
- Inheritance
-
ViewModelTypeAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
ViewModelTypeAttribute(Type)
Instantiates a new attribute with the specified type.
public ViewModelTypeAttribute(Type type)
Parameters
type
Type
Properties
ViewModelType
Gets the type of view model.
public Type ViewModelType { get; }