Class AIPromptInputView
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.
Inheritance
Inherited Members
Namespace: Telerik.Maui.Controls.AIPrompt
Assembly: Telerik.Maui.Controls.dll
Syntax
public class AIPromptInputView : AIPromptView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Constructors
AIPromptInputView()
Initializes a new instance of the class.
Declaration
public AIPromptInputView()
Fields
ActualInputButtonStyleProperty
Identifies the ActualInputButtonStyle property.
Declaration
public static readonly BindableProperty ActualInputButtonStyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
ActualInputEditorStyleProperty
Identifies the ActualInputEditorStyle property.
Declaration
public static readonly BindableProperty ActualInputEditorStyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
ActualPromptRequestCommandProperty
Identifies the ActualPromptRequestCommand property.
Declaration
public static readonly BindableProperty ActualPromptRequestCommandProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
ActualSuggestionsExpanderStyleProperty
Identifies the ActualSuggestionsExpanderStyle property.
Declaration
public static readonly BindableProperty ActualSuggestionsExpanderStyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
ActualSuggestionStyleProperty
Identifies the ActualSuggestionTappedCommand property.
Declaration
public static readonly BindableProperty ActualSuggestionStyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
ActualSuggestionTappedCommandProperty
Declaration
public static readonly BindableProperty ActualSuggestionTappedCommandProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
InputButtonStyleProperty
Identifies the InputButtonStyle property.
Declaration
public static readonly BindableProperty InputButtonStyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
InputButtonTextProperty
Identifies the InputButtonText property.
Declaration
public static readonly BindableProperty InputButtonTextProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
InputEditorStyleProperty
Identifies the InputEditorStyle property.
Declaration
public static readonly BindableProperty InputEditorStyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
InputTextProperty
Identifies the InputText property.
Declaration
public static readonly BindableProperty InputTextProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
PromptRequestCommandProperty
Identifies the PromptRequestCommand property.
Declaration
public static readonly BindableProperty PromptRequestCommandProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SuggestionsExpanderStyleProperty
Identifies the SuggestionsExpanderStyle property.
Declaration
public static readonly BindableProperty SuggestionsExpanderStyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SuggestionsHeaderTextProperty
Identifies the SuggestionsHeaderText property.
Declaration
public static readonly BindableProperty SuggestionsHeaderTextProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SuggestionsProperty
Identifies the Suggestions property.
Declaration
public static readonly BindableProperty SuggestionsProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SuggestionStyleProperty
Identifies the SuggestionStyle property.
Declaration
public static readonly BindableProperty SuggestionStyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
Properties
ActualInputButtonStyle
Gets or sets the actual style that will be applied to the input button. This is a merger of the custom InputButtonStyle and the default style.
Declaration
public Style ActualInputButtonStyle { get; }
Property Value
Microsoft.Maui.Controls.Style
|
ActualInputEditorStyle
Gets or sets the actual style that will be applied to the input editor. This is a merger of the custom InputEditorStyle and the default style.
Declaration
public Style ActualInputEditorStyle { get; }
Property Value
Microsoft.Maui.Controls.Style
|
ActualPromptRequestCommand
Gets the actual command that is executed when the end-user makes a request. The default behavior of this command is to execute the PromptRequestCommand and raise the PromptRequest event.
Declaration
public ICommand ActualPromptRequestCommand { get; }
Property Value
System.Windows.Input.ICommand
|
ActualSuggestionsExpanderStyle
Gets or sets the actual style that will be applied to the suggestions expander. This is a merger of the custom SuggestionsExpanderStyle and the default style.
Declaration
public Style ActualSuggestionsExpanderStyle { get; }
Property Value
Microsoft.Maui.Controls.Style
|
ActualSuggestionStyle
Gets the actual command that is executed when an AIPrompt suggestion is tapped. The default behavior of this command is to set the InputText to the text of the suggestion.
Declaration
public Style ActualSuggestionStyle { get; }
Property Value
Microsoft.Maui.Controls.Style
|
ActualSuggestionTappedCommand
Declaration
public ICommand ActualSuggestionTappedCommand { get; }
Property Value
System.Windows.Input.ICommand
|
InputButtonStyle
Gets or sets the style that is to be applied to the input button.
Declaration
public Style InputButtonStyle { get; set; }
Property Value
Microsoft.Maui.Controls.Style
|
InputButtonText
Gets or sets the text of the input button.
Declaration
public string InputButtonText { get; set; }
Property Value
System.String
|
InputEditorStyle
Gets or sets the style that is to be applied to the input editor.
Declaration
public Style InputEditorStyle { get; set; }
Property Value
Microsoft.Maui.Controls.Style
|
InputText
Gets or sets the input text.
Declaration
public string InputText { get; set; }
Property Value
System.String
|
PromptRequestCommand
Gets or sets the command that is executed when the end-user makes a request by pressing the input button or a command.
Declaration
public ICommand PromptRequestCommand { get; set; }
Property Value
System.Windows.Input.ICommand
|
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
System.Collections.IEnumerable
|
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
Microsoft.Maui.Controls.Style
|
SuggestionsHeaderText
Gets or sets the text of the suggestions header.
Declaration
public string SuggestionsHeaderText { get; set; }
Property Value
System.String
|
SuggestionStyle
Gets or sets the style that is to be applied to the suggestions.
Declaration
public Style SuggestionStyle { get; set; }
Property Value
Microsoft.Maui.Controls.Style
|
Events
PromptRequest
Occurs when the end-user makes a request by pressing the input button or a command.
Declaration
public event EventHandler PromptRequest
Event Type
System.EventHandler
|