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

Selects DataTemplate instances for the commands of the RadAIPrompt.

Definition

Namespace:Telerik.Maui.Controls.AIPrompt

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class AIPromptCommandTemplateSelector : DataTemplateSelector

Inheritance: objectAIPromptCommandTemplateSelector

Constructors

C#
public AIPromptCommandTemplateSelector()

Properties

CommandTemplate

DataTemplate

Gets or sets the template that is used for the AIPromptCommand items.

C#
public DataTemplate CommandTemplate { get; set; }

GroupTemplate

DataTemplate

Gets or sets the template that is used for the AIPromptCommandGroup items.

C#
public DataTemplate GroupTemplate { get; set; }

Methods

Selects a template based on the provided information.

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

DataTemplate