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.SfChat.Wpf.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 |
---|
System.Windows.DataTemplate |
Methods
SelectTemplate(Object, DependencyObject)
Selects a data template based on the suggestion item.
Declaration
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | |
System.Windows.DependencyObject | container |
Returns
Type |
---|
System.Windows.DataTemplate |