Class DefaultTypeTemplateSelector
Selects a System.Windows.DataTemplate for a type using its TemplateTable.
Inheritance
Namespace: Telerik.Windows.Controls.TreeMap
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public sealed class DefaultTypeTemplateSelector : DataTemplateSelector
Constructors
DefaultTypeTemplateSelector()
Initializes a new instance of the DefaultTypeTemplateSelector class.
Declaration
public DefaultTypeTemplateSelector()
Properties
DefaultTemplate
Gets or sets the default template.
Declaration
public DataTemplate DefaultTemplate { get; set; }
Property Value
System.Windows.DataTemplate
The default template. |
TemplateTable
Gets the template table.
Declaration
public Dictionary<string, DataTemplate> TemplateTable { get; }
Property Value
System.Collections.Generic.Dictionary<System.String, System.Windows.DataTemplate>
The template table. |
Methods
SelectTemplate(Object, DependencyObject)
When overridden in a derived class, returns a DataTemplate based on custom logic.
Declaration
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameters
System.Object
item
The data object for which to select the template. |
System.Windows.DependencyObject
container
The data-bound object. |
Returns
System.Windows.DataTemplate
|