New to Telerik UI for .NET MAUI? Start a free 30-day trial
Commands & Events
The .NET MAUI AIPrompt provides several commands that you can utilize when working with the component.
The following list shows the commands that are exposed by the AIPrompt control:
PromptRequestCommand(ICommand)—Executed when the end-user makes a request by pressing the input button inside the Input View.OutputItemCopyCommand(ICommand)—Executed when the copy button of the generated response item is pressed.OutputItemRetryCommand(ICommand)—Executed when the retry button of the generated response item is pressedOutputItemRatingChangedCommand(ICommand)—Executed when the rating of the generated response is changed through the UI.CommandTappedCommand(ICommand)—Executed when an AIPrompt command is pressed.
In addition, the AIPrompt exposes PromptRequest event:
PromptRequest—Occurs when the end-user makes a request by pressing the input button inside the Input View. ThePromptRequestevent handler receives two parameters:- The
senderwhich is theRadAIPromptcontrol. System.EventArgsobject.
- The