New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public class ChatItemTemplateSelector : DataTemplateSelector

Inheritance: objectChatItemTemplateSelector

Constructors

Initializes a new instance of the ChatItemTemplateSelector class.

C#
public ChatItemTemplateSelector()

Properties

Gets or sets the template for visualizing the first incoming attachments message, out of a few consecutive messages from the same author.

C#
public DataTemplate IncomingFirstAttachmentsMessageTemplate { get; set; }

Gets or sets the template for visualizing the first incoming text message, out of a few consecutive messages from the same author.

C#
public DataTemplate IncomingFirstTextMessageTemplate { get; set; }

Gets or sets the template for visualizing the last incoming attachments message, out of a few consecutive messages from the same author.

C#
public DataTemplate IncomingLastAttachmentsMessageTemplate { get; set; }

Gets or sets the template for visualizing the last incoming text message, out of a few consecutive messages from the same author.

C#
public DataTemplate IncomingLastTextMessageTemplate { get; set; }

Gets or sets the template for visualizing an incoming attachments message which is in-between other messages, out of a few consecutive messages from the same author.

C#
public DataTemplate IncomingMiddleAttachmentsMessageTemplate { get; set; }

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.

C#
public DataTemplate IncomingMiddleTextMessageTemplate { get; set; }

Gets or sets the template for visualizing a single incoming attachments message, i.e. when the number of consecutive messages from the same author is one.

C#
public DataTemplate IncomingSingleAttachmentsMessageTemplate { get; set; }

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.

C#
public DataTemplate IncomingSingleTextMessageTemplate { get; set; }

Gets or sets the template for visualizing the first outgoing attachments message, out of a few consecutive messages from the same author.

C#
public DataTemplate OutgoingFirstAttachmentsMessageTemplate { get; set; }

Gets or sets the template for visualizing the first outgoing text message, out of a few consecutive messages from the same author.

C#
public DataTemplate OutgoingFirstTextMessageTemplate { get; set; }

Gets or sets the template for visualizing the last outgoing attachments message, out of a few consecutive messages from the same author.

C#
public DataTemplate OutgoingLastAttachmentsMessageTemplate { get; set; }

Gets or sets the template for visualizing the last outgoing text message, out of a few consecutive messages from the same author.

C#
public DataTemplate OutgoingLastTextMessageTemplate { get; set; }

Gets or sets the template for visualizing an outgoing attachments message which is in-between other messages, out of a few consecutive messages from the same author.

C#
public DataTemplate OutgoingMiddleAttachmentsMessageTemplate { get; set; }

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.

C#
public DataTemplate OutgoingMiddleTextMessageTemplate { get; set; }

Gets or sets the template for visualizing a single outgoing attachments message, i.e. when the number of consecutive messages from the same author is one.

C#
public DataTemplate OutgoingSingleAttachmentsMessageTemplate { get; set; }

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.

C#
public DataTemplate OutgoingSingleTextMessageTemplate { get; set; }

PickerTemplate

DataTemplate

Gets or sets the template for visualizing a picker item.

C#
public DataTemplate PickerTemplate { get; set; }

Gets or sets the template for visualizing suggested actions.

C#
public DataTemplate SuggestedActionsTemplate { get; set; }

Gets or sets the template that is used when the provided message cannot be visualized.

C#
public DataTemplate TemplateNotAvailableTemplate { get; set; }

TimeBreakTemplate

DataTemplate

Gets or sets the template for visualizing time breaks.

C#
public DataTemplate TimeBreakTemplate { get; set; }

Methods

C#
protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
Parameters:itemobjectcontainerBindableObjectReturns:

DataTemplate