ClassAIPromptInputView
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:
public class AIPromptInputView : AIPromptView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewAIPromptViewAIPromptInputView
Implements:
Inherited Members
Constructors
AIPromptInputView()
Initializes a new instance of the class.
Declaration
public AIPromptInputView()
Fields
InputButtonStyleProperty
Identifies the InputButtonStyle property.
Declaration
public static readonly BindableProperty InputButtonStyleProperty
Field Value
BindableProperty
InputButtonTextProperty
Identifies the InputButtonText property.
Declaration
public static readonly BindableProperty InputButtonTextProperty
Field Value
BindableProperty
InputEditorStyleProperty
Identifies the InputEditorStyle property.
Declaration
public static readonly BindableProperty InputEditorStyleProperty
Field Value
BindableProperty
InputTextProperty
Identifies the InputText property.
Declaration
public static readonly BindableProperty InputTextProperty
Field Value
BindableProperty
PromptRequestCommandProperty
Identifies the PromptRequestCommand property.
Declaration
public static readonly BindableProperty PromptRequestCommandProperty
Field Value
BindableProperty
SuggestionStyleProperty
Identifies the SuggestionStyle property.
Declaration
public static readonly BindableProperty SuggestionStyleProperty
Field Value
BindableProperty
SuggestionsExpanderStyleProperty
Identifies the SuggestionsExpanderStyle property.
Declaration
public static readonly BindableProperty SuggestionsExpanderStyleProperty
Field Value
BindableProperty
SuggestionsHeaderTextProperty
Identifies the SuggestionsHeaderText property.
Declaration
public static readonly BindableProperty SuggestionsHeaderTextProperty
Field Value
BindableProperty
SuggestionsProperty
Identifies the Suggestions property.
Declaration
public static readonly BindableProperty SuggestionsProperty
Field Value
BindableProperty
Properties
InputButtonStyle
Gets or sets the style that is to be applied to the input button.
Declaration
public Style InputButtonStyle { get; set; }
Property Value
Style
InputButtonText
Gets or sets the text of the input button.
InputEditorStyle
Gets or sets the style that is to be applied to the input editor.
Declaration
public Style InputEditorStyle { get; set; }
Property Value
Style
InputText
Gets or sets the input text.
PromptRequestCommand
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.
Declaration
public ICommand PromptRequestCommand { get; set; }
Property Value
SuggestionStyle
Gets or sets the style that is to be applied to the suggestions.
Declaration
public Style SuggestionStyle { get; set; }
Property Value
Style
Suggestions
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.
Declaration
public IEnumerable Suggestions { get; set; }
Property Value
SuggestionsExpanderStyle
Gets or sets the style that is to be applied to the RadExpander that contains the suggestions.
Declaration
public Style SuggestionsExpanderStyle { get; set; }
Property Value
Style
SuggestionsHeaderText
Gets or sets the text of the suggestions header.
Declaration
public string SuggestionsHeaderText { get; set; }
Property Value
Events
PromptRequest
Occurs when the end-user makes a request by pressing the input button or a command.