Click or drag to resize

RoleBasedDataTemplateSelector Class

A template selector that finds the DataTemplate by the RoleBasedDataTemplateKey.
Inheritance Hierarchy
SystemObject
  System.Windows.ControlsDataTemplateSelector
    TomsToolbox.Wpf.CompositionRoleBasedDataTemplateSelector

Namespace:  TomsToolbox.Wpf.Composition
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 1.0.64.0 (1.0.64.0)
Syntax
public class RoleBasedDataTemplateSelector : DataTemplateSelector

The RoleBasedDataTemplateSelector type exposes the following members.

Constructors
  NameDescription
Public methodRoleBasedDataTemplateSelector
Initializes a new instance of the RoleBasedDataTemplateSelector class
Top
Properties
  NameDescription
Public propertyFallbackValue
Gets or sets the template used as fallback if no template for the specified role is found.
Public propertyRole
Gets or sets the role to use in the lookup.
Top
Methods
Extension Methods
See Also