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

A view that displays the input area of a RadAIPrompt. Contains things like the input editor, the button that makes a request to the AI model, and a list of pre-defined suggestions.

Definition

Namespace:Telerik.Maui.Controls.AIPrompt

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class AIPromptInputView : AIPromptView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewAIPromptViewAIPromptInputView...

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView...

Inherited Members AIPromptView.ControlTemplatePropertyAIPromptView.HeaderTextPropertyAIPromptView.HeaderImageSourcePropertyAIPromptView.ControlTemplateAIPromptView.HeaderTextAIPromptView.HeaderImageSourceRadBorderContentView.BackgroundColorPropertyRadBorderContentView.BackgroundPropertyRadBorderContentView.BorderColorPropertyRadBorderContentView.BorderBrushPropertyRadBorderContentView.BorderThicknessPropertyRadBorderContentView.CornerRadiusPropertyRadBorderContentView.ContentPaddingPropertyRadBorderContentView.BackgroundColorRadBorderContentView.BackgroundRadBorderContentView.BorderColorRadBorderContentView.BorderBrushRadBorderContentView.BorderThicknessRadBorderContentView.CornerRadiusRadBorderContentView.ContentPaddingRadCompositeContentView.StylePropertyRadCompositeContentView.OnApplyTemplate()RadCompositeContentView.OnBindingContextChanged()RadCompositeContentView.OnPropertyChanged(string)RadCompositeContentView.StyleRadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnHandlerChanged()...

Constructors

Initializes a new instance of the class.

C#
public AIPromptInputView()

Fields

InputButtonStyleProperty

BindableProperty

Identifies the InputButtonStyle property.

C#
public static readonly BindableProperty InputButtonStyleProperty

InputButtonTextProperty

BindableProperty

Identifies the InputButtonText property.

C#
public static readonly BindableProperty InputButtonTextProperty

InputEditorStyleProperty

BindableProperty

Identifies the InputEditorStyle property.

C#
public static readonly BindableProperty InputEditorStyleProperty

InputTextProperty

BindableProperty

Identifies the InputText property.

C#
public static readonly BindableProperty InputTextProperty

Identifies the PromptRequestCommand property.

C#
public static readonly BindableProperty PromptRequestCommandProperty

Identifies the SuggestionsExpanderStyle property.

C#
public static readonly BindableProperty SuggestionsExpanderStyleProperty

Identifies the SuggestionsHeaderText property.

C#
public static readonly BindableProperty SuggestionsHeaderTextProperty

SuggestionsProperty

BindableProperty

Identifies the Suggestions property.

C#
public static readonly BindableProperty SuggestionsProperty

SuggestionStyleProperty

BindableProperty

Identifies the SuggestionStyle property.

C#
public static readonly BindableProperty SuggestionStyleProperty

Properties

Gets or sets the style that is to be applied to the input button.

C#
public Style InputButtonStyle { get; set; }

Gets or sets the text of the input button.

C#
public string InputButtonText { get; set; }

Gets or sets the style that is to be applied to the input editor.

C#
public Style InputEditorStyle { get; set; }

Gets or sets the input text.

C#
public string InputText { get; set; }

Gets or sets the command that is executed when the end-user makes a request by pressing the input button or a command. The parameter of this command is of type string and it's value is the same as the InputText property.

C#
public ICommand PromptRequestCommand { get; set; }

Gets or sets the suggestions. The items of this collection can be simple string objects. In case more control over the UI is needed, the items in this collection can be objects from a custom class and the SuggestionStyle property can be used to set the ControlTemplate.

C#
public IEnumerable Suggestions { get; set; }

Gets or sets the style that is to be applied to the RadExpander that contains the suggestions.

C#
public Style SuggestionsExpanderStyle { get; set; }

Gets or sets the text of the suggestions header.

C#
public string SuggestionsHeaderText { get; set; }

Gets or sets the style that is to be applied to the suggestions.

C#
public Style SuggestionStyle { get; set; }

Events

Occurs when the end-user makes a request by pressing the input button or a command.

C#
public event EventHandler PromptRequest