|  | Data | 
 Inheritance Hierarchy
Inheritance Hierarchy Syntax
SyntaxThe DataTemplateAttribute type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | DataTemplateAttribute | Initializes a new instance of the DataTemplateAttribute class. | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | DataType | Gets the type of the view model that this visual has a representation for. | 
|  | Role | Gets the role of this visual. If a role is set, a RoleBasedDataTemplateKey will be created for this view; else a simple DataTemplateKey is used. | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|  | SafeCastT | Performs a cast from object to T, avoiding possible null violations if T is a value type. (Defined by ObjectExtensions) | 
 See Also
See Also