Class SuggestionTemplateSelector
This class allows you to define different data templates for different types of suggestions in your chat application.
Inheritance
System.Object
SuggestionTemplateSelector
Namespace: Syncfusion.UI.Xaml.Chat
Assembly: Syncfusion.Chat.WinUI.dll
Syntax
public class SuggestionTemplateSelector : DataTemplateSelector
Constructors
SuggestionTemplateSelector()
Declaration
public SuggestionTemplateSelector()
Properties
ButtonTemplate
Gets or sets the data template for text messages.
Declaration
public DataTemplate ButtonTemplate { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.DataTemplate |
Methods
SelectTemplateCore(Object, DependencyObject)
Selects a data template based on the suggestion item.
Declaration
protected override DataTemplate SelectTemplateCore(object item, DependencyObject container)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | |
Microsoft.UI.Xaml.DependencyObject | container |
Returns
Type |
---|
Microsoft.UI.Xaml.DataTemplate |