Class ChatItemTemplateSelector
This class allows you to define different data templates for different types of suggestions in your chat application.
Inheritance
System.Object
ChatItemTemplateSelector
Namespace: Syncfusion.UI.Xaml.Chat
Assembly: Syncfusion.SfChat.Wpf.dll
Syntax
public class ChatItemTemplateSelector : DataTemplateSelector
Constructors
ChatItemTemplateSelector()
Declaration
public ChatItemTemplateSelector()
Properties
DefaultTemplate
Declaration
public DataTemplate DefaultTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
HeaderTemplate
Gets or sets the data template for text messages.
Declaration
public DataTemplate HeaderTemplate { 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 |