ClassChatItemTemplateSelector
A template selector responsible for choosing the corresponding template for the given ChatItem.
Definition
Namespace:Telerik.Maui.Controls.Chat
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class ChatItemTemplateSelector : DataTemplateSelector
Inheritance: objectChatItemTemplateSelector
Constructors
ChatItemTemplateSelector()
Initializes a new instance of the ChatItemTemplateSelector class.
Declaration
public ChatItemTemplateSelector()
Properties
IncomingFirstTextMessageTemplate
Gets or sets the template for visualizing the first incoming text message, out of a few consecutive messages from the same author.
Declaration
public DataTemplate IncomingFirstTextMessageTemplate { get; set; }
Property Value
DataTemplate
IncomingLastTextMessageTemplate
Gets or sets the template for visualizing the last incoming text message, out of a few consecutive messages from the same author.
Declaration
public DataTemplate IncomingLastTextMessageTemplate { get; set; }
Property Value
DataTemplate
IncomingMiddleTextMessageTemplate
Gets or sets the template for visualizing an incoming text message which is in-between other messages, out of a few consecutive messages from the same author.
Declaration
public DataTemplate IncomingMiddleTextMessageTemplate { get; set; }
Property Value
DataTemplate
IncomingSingleTextMessageTemplate
Gets or sets the template for visualizing a single incoming text message, i.e. when the number of consecutive messages from the same author is one.
Declaration
public DataTemplate IncomingSingleTextMessageTemplate { get; set; }
Property Value
DataTemplate
OutgoingFirstTextMessageTemplate
Gets or sets the template for visualizing the first outgoing text message, out of a few consecutive messages from the same author.
Declaration
public DataTemplate OutgoingFirstTextMessageTemplate { get; set; }
Property Value
DataTemplate
OutgoingLastTextMessageTemplate
Gets or sets the template for visualizing the last outgoing text message, out of a few consecutive messages from the same author.
Declaration
public DataTemplate OutgoingLastTextMessageTemplate { get; set; }
Property Value
DataTemplate
OutgoingMiddleTextMessageTemplate
Gets or sets the template for visualizing an outgoing text message which is in-between other messages, out of a few consecutive messages from the same author.
Declaration
public DataTemplate OutgoingMiddleTextMessageTemplate { get; set; }
Property Value
DataTemplate
OutgoingSingleTextMessageTemplate
Gets or sets the template for visualizing a single outgoing text message, i.e. when the number of consecutive messages from the same author is one.
Declaration
public DataTemplate OutgoingSingleTextMessageTemplate { get; set; }
Property Value
DataTemplate
PickerTemplate
Gets or sets the template for visualizing a picker item.
Declaration
public DataTemplate PickerTemplate { get; set; }
Property Value
DataTemplate
SuggestedActionsTemplate
Gets or sets the template for visualizing suggested actions.
Declaration
public DataTemplate SuggestedActionsTemplate { get; set; }
Property Value
DataTemplate
TemplateNotAvailableTemplate
Gets or sets the template that is used when the provided message cannot be visualized.
Declaration
public DataTemplate TemplateNotAvailableTemplate { get; set; }
Property Value
DataTemplate
TimeBreakTemplate
Gets or sets the template for visualizing time breaks.
Declaration
public DataTemplate TimeBreakTemplate { get; set; }
Property Value
DataTemplate
Methods
OnSelectTemplate(object, BindableObject)
Declaration
protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
Parameters
item
container
BindableObject
Returns
DataTemplate