DataTemplateAttribute Class |
Namespace: TomsToolbox.Wpf.Composition.AttributedModel
The DataTemplateAttribute type exposes the following members.
Name | Description | |
---|---|---|
DataTemplateAttribute |
Initializes a new instance of the DataTemplateAttribute class.
|
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.
|
Name | Description | |
---|---|---|
SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions.) |