Class ToolbarItemTemplateSelector
Template selector for response toolbar items that selects appropriate templates based on the item type.
Inheritance
System.Object
    ToolbarItemTemplateSelector
  Namespace: Syncfusion.UI.Xaml.Chat
Assembly: Syncfusion.Chat.WinUI.dll
Syntax
public class ToolbarItemTemplateSelector : DataTemplateSelectorConstructors
ToolbarItemTemplateSelector()
Declaration
public ToolbarItemTemplateSelector()Properties
CopyTemplate
Gets or sets the template for Copy toolbar items.
Declaration
public DataTemplate CopyTemplate { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.DataTemplate | 
CustomTemplate
Gets or sets the default template for custom toolbar items.
Declaration
public DataTemplate CustomTemplate { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.DataTemplate | 
DefaultTemplate
Gets or sets the default template for custom toolbar items.
Declaration
public DataTemplate DefaultTemplate { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.DataTemplate | 
DislikeTemplate
Gets or sets the template for Dislike toolbar items.
Declaration
public DataTemplate DislikeTemplate { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.DataTemplate | 
LikeTemplate
Gets or sets the template for Like toolbar items.
Declaration
public DataTemplate LikeTemplate { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.DataTemplate | 
RegenerateTemplate
Gets or sets the template for Regenerate toolbar items.
Declaration
public DataTemplate RegenerateTemplate { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.DataTemplate | 
Methods
SelectTemplateCore(Object)
Selects the appropriate template based on the toolbar item type.
Declaration
protected override DataTemplate SelectTemplateCore(object item)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | item | The toolbar item. | 
Returns
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.DataTemplate | The selected data template. | 
SelectTemplateCore(Object, DependencyObject)
Selects the appropriate template based on the toolbar item type.
Declaration
protected override DataTemplate SelectTemplateCore(object item, DependencyObject container)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | item | The toolbar item. | 
| Microsoft.UI.Xaml.DependencyObject | container | The container element. | 
Returns
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.DataTemplate | The selected data template. |