Class ChatItemTemplateSelector
A template selector responsible for choosing the corresponding template for the given ChatItem.
Inheritance
Namespace: Telerik.Maui.Controls.Chat
Assembly: Telerik.Maui.Controls.dll
Syntax
public class ChatItemTemplateSelector : DataTemplateSelector
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
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.DataTemplate
|
PickerTemplate
Gets or sets the template for visualizing a picker item.
Declaration
public DataTemplate PickerTemplate { get; set; }
Property Value
Microsoft.Maui.Controls.DataTemplate
|
SuggestedActionsTemplate
Gets or sets the template for visualizing suggested actions.
Declaration
public DataTemplate SuggestedActionsTemplate { get; set; }
Property Value
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.DataTemplate
|
TimeBreakTemplate
Gets or sets the template for visualizing time breaks.
Declaration
public DataTemplate TimeBreakTemplate { get; set; }
Property Value
Microsoft.Maui.Controls.DataTemplate
|
Methods
OnSelectTemplate(Object, BindableObject)
Declaration
protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
Parameters
System.Object
item
|
Microsoft.Maui.Controls.BindableObject
container
|
Returns
Microsoft.Maui.Controls.DataTemplate
|