DataGridAIPromptView
Represents the content view for an AI prompt sheet, combining DataGridAIPromptInput with DataGridAISuggestionsView. This is the content that will be displayed inside the BottomSheetContent of RadBottomSheet.
Definition
Namespace:Telerik.Maui.Controls.DataGrid
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class DataGridAIPromptView : RadContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewDataGridAIPromptView
Implements:
Inherited Members
Constructors
Initializes a new instance of the DataGridAIPromptView class.
public DataGridAIPromptView()
Fields
ActualHeaderLabelStyleProperty
BindableProperty
Identifies the ActualHeaderLabelStyle property.
public static readonly BindableProperty ActualHeaderLabelStyleProperty
CancelPromptRequestCommandProperty
BindableProperty
Identifies the CancelPromptRequestCommand property.
public static readonly BindableProperty CancelPromptRequestCommandProperty
ControlTemplateProperty
BindableProperty
Identifies the ControlTemplate property.
public static readonly BindableProperty ControlTemplateProperty
EmptyContentTemplateProperty
BindableProperty
Identifies the EmptyContentTemplate property.
public static readonly BindableProperty EmptyContentTemplateProperty
HeaderLabelStyleProperty
BindableProperty
Identifies the HeaderLabelStyle property.
public static readonly BindableProperty HeaderLabelStyleProperty
InputTextProperty
BindableProperty
Identifies the InputText property.
public static readonly BindableProperty InputTextProperty
IsEmptyContentVisibleProperty
BindableProperty
Identifies the IsEmptyContentVisible property.
public static readonly BindableProperty IsEmptyContentVisibleProperty
IsRecentPromptsVisibleProperty
BindableProperty
Identifies the IsRecentPromptsVisible property.
public static readonly BindableProperty IsRecentPromptsVisibleProperty
IsSuggestedPromptsVisibleProperty
BindableProperty
Identifies the IsSuggestedPromptsVisible property.
public static readonly BindableProperty IsSuggestedPromptsVisibleProperty
PromptInputStyleProperty
BindableProperty
Identifies the PromptInputStyle property.
public static readonly BindableProperty PromptInputStyleProperty
PromptRequestCommandProperty
BindableProperty
Identifies the PromptRequestCommand property.
public static readonly BindableProperty PromptRequestCommandProperty
RecentPromptsProperty
BindableProperty
Identifies the RecentPrompts property.
public static readonly BindableProperty RecentPromptsProperty
SubmitPromptOnSelectionProperty
BindableProperty
Identifies the SubmitPromptOnSelection property.
public static readonly BindableProperty SubmitPromptOnSelectionProperty
SuggestedPromptsProperty
BindableProperty
Identifies the SuggestedPrompts property.
public static readonly BindableProperty SuggestedPromptsProperty
SuggestionsViewStyleProperty
BindableProperty
Identifies the SuggestionsViewStyle property.
public static readonly BindableProperty SuggestionsViewStyleProperty
Properties
Gets the actual style that is applied to the header label. This property contains the merged result of the HeaderLabelStyle and the default style.
public Style ActualHeaderLabelStyle { get; }
Gets or sets the command executed when a cancel prompt request is submitted.
public ICommand CancelPromptRequestCommand { get; set; }
ControlTemplate
ControlTemplate
Gets or sets the control template that defines the visual structure of the DataGridAIPromptView.
public ControlTemplate ControlTemplate { get; set; }
EmptyContentTemplate
DataTemplate
Gets or sets the template used to display content when no suggestions are available.
public DataTemplate EmptyContentTemplate { get; set; }
HeaderLabelStyle
Style
Gets or sets the style of the that represents the header.
public Style HeaderLabelStyle { get; set; }
Gets or sets a value indicating whether the empty content template should be visible when no suggestions are available.
public bool IsEmptyContentVisible { get; set; }
Gets or sets a value indicating whether the recent prompts section is visible.
public bool IsRecentPromptsVisible { get; set; }
Gets or sets a value indicating whether the suggested prompts section is visible.
public bool IsSuggestedPromptsVisible { get; set; }
PromptInputStyle
Style
Gets or sets the style of the DataGridAIPromptInput.
public Style PromptInputStyle { get; set; }
Gets or sets the command executed when a prompt request is submitted.
public ICommand PromptRequestCommand { get; set; }
Gets or sets the collection of recent prompts.
public IEnumerable<string> RecentPrompts { get; set; }
Gets or sets a value indicating whether selecting a prompt should automatically submit the request. When true, selecting a prompt invokes the PromptRequestCommand (but does not close the sheet). When false, the selected prompt is placed in the input and the user must manually submit.
public bool SubmitPromptOnSelection { get; set; }
Gets or sets the collection of suggested prompts.
public IEnumerable<string> SuggestedPrompts { get; set; }
SuggestionsViewStyle
Style
Gets or sets the style of the DataGridAISuggestionsView.
public Style SuggestionsViewStyle { get; set; }
Methods
protected override void OnApplyTemplate()
Events
Occurs when the user requests to cancel the current processing operation by clicking the stop button.
public event EventHandler CancelPromptRequest
Occurs when a prompt is requested from the user on send or completed action.
public event EventHandler<DataGridPromptRequestEventArgs> PromptRequest