Class TemplateSelector
Represents the class for template selector for data object.
Inheritance
System.Object
TemplateSelector
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class TemplateSelector : DataTemplateSelector
Constructors
TemplateSelector()
Declaration
public TemplateSelector()
Properties
GroupbarItemTemplate
Gets or sets the data template used specifically for GroupBarItem elements.
Declaration
public DataTemplate GroupbarItemTemplate { get; set; }
Property Value
| Type |
|---|
| System.Windows.DataTemplate |
ObjectTemplate
Gets or sets the data template used for generic object items.
Declaration
public DataTemplate ObjectTemplate { get; set; }
Property Value
| Type |
|---|
| System.Windows.DataTemplate |
Methods
SelectTemplate(Object, DependencyObject)
Selects a System.Windows.DataTemplate based on the type or value of the provided item.
Declaration
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | The data object for which to select the template. |
| System.Windows.DependencyObject | container | The container in which the template will be applied. |
Returns
| Type |
|---|
| System.Windows.DataTemplate |