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

Commands & Events

Updated over 1 year ago

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 pressed
  • OutputItemRatingChangedCommand(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. The PromptRequest event handler receives two parameters:
    • The sender which is the RadAIPrompt control.
    • System.EventArgsobject.

See Also

In this article
See Also
Not finding the help you need?
Contact Support