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

Represents a selector that selects the appropriate template to display a particular card message.

Definition

Namespace:Telerik.Maui.Controls.Chat

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class CardPickerTemplateSelector : DataTemplateSelector

Inheritance: objectCardPickerTemplateSelector

Constructors

Initializes a new instance of the CardPickerTemplateSelector class.

C#
public CardPickerTemplateSelector()

Properties

BasicCardTemplate

DataTemplate

Gets or sets the template that is used for a basic card.

C#
public DataTemplate BasicCardTemplate { get; set; }

ImageCardTemplate

DataTemplate

Gets or sets the template that is used for an image card.

C#
public DataTemplate ImageCardTemplate { get; set; }

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

C#
public DataTemplate TemplateNotAvailableTemplate { get; set; }

Methods

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

DataTemplate