RoleBasedDataTemplateSelector Class |
Namespace: TomsToolbox.Wpf.Composition
The RoleBasedDataTemplateSelector type exposes the following members.
Name | Description | |
---|---|---|
RoleBasedDataTemplateSelector | Initializes a new instance of the RoleBasedDataTemplateSelector class |
Name | Description | |
---|---|---|
FallbackValue |
Gets or sets the template used as fallback if no template for the specified role is found.
| |
Role |
Gets or sets the role to use in the lookup.
|
Name | Description | |
---|---|---|
SelectTemplate |
When overridden in a derived class, returns a DataTemplate based on custom logic.
(Overrides DataTemplateSelectorSelectTemplate(Object, DependencyObject).) |
Name | Description | |
---|---|---|
SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions.) |