Class
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:

cs-api-definition
public class DataGridAIPromptView : RadContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewDataGridAIPromptView

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView

Inherited Members RadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnBindingContextChanged()RadContentView.OnHandlerChanged()

Constructors

DataGridAIPromptView()

Initializes a new instance of the DataGridAIPromptView class.

Declaration

cs-api-definition
public DataGridAIPromptView()

Fields

ActualHeaderLabelStyleProperty

Identifies the ActualHeaderLabelStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualHeaderLabelStyleProperty

Field Value

BindableProperty

CancelPromptRequestCommandProperty

Identifies the CancelPromptRequestCommand property.

Declaration

cs-api-definition
public static readonly BindableProperty CancelPromptRequestCommandProperty

Field Value

BindableProperty

ControlTemplateProperty

Identifies the ControlTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty ControlTemplateProperty

Field Value

BindableProperty

EmptyContentTemplateProperty

Identifies the EmptyContentTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty EmptyContentTemplateProperty

Field Value

BindableProperty

HeaderLabelStyleProperty

Identifies the HeaderLabelStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty HeaderLabelStyleProperty

Field Value

BindableProperty

InputTextProperty

Identifies the InputText property.

Declaration

cs-api-definition
public static readonly BindableProperty InputTextProperty

Field Value

BindableProperty

IsEmptyContentVisibleProperty

Identifies the IsEmptyContentVisible property.

Declaration

cs-api-definition
public static readonly BindableProperty IsEmptyContentVisibleProperty

Field Value

BindableProperty

IsRecentPromptsVisibleProperty

Identifies the IsRecentPromptsVisible property.

Declaration

cs-api-definition
public static readonly BindableProperty IsRecentPromptsVisibleProperty

Field Value

BindableProperty

IsSuggestedPromptsVisibleProperty

Identifies the IsSuggestedPromptsVisible property.

Declaration

cs-api-definition
public static readonly BindableProperty IsSuggestedPromptsVisibleProperty

Field Value

BindableProperty

PromptInputStyleProperty

Identifies the PromptInputStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty PromptInputStyleProperty

Field Value

BindableProperty

PromptRequestCommandProperty

Identifies the PromptRequestCommand property.

Declaration

cs-api-definition
public static readonly BindableProperty PromptRequestCommandProperty

Field Value

BindableProperty

RecentPromptsProperty

Identifies the RecentPrompts property.

Declaration

cs-api-definition
public static readonly BindableProperty RecentPromptsProperty

Field Value

BindableProperty

SubmitPromptOnSelectionProperty

Identifies the SubmitPromptOnSelection property.

Declaration

cs-api-definition
public static readonly BindableProperty SubmitPromptOnSelectionProperty

Field Value

BindableProperty

SuggestedPromptsProperty

Identifies the SuggestedPrompts property.

Declaration

cs-api-definition
public static readonly BindableProperty SuggestedPromptsProperty

Field Value

BindableProperty

SuggestionsViewStyleProperty

Identifies the SuggestionsViewStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty SuggestionsViewStyleProperty

Field Value

BindableProperty

Properties

ActualHeaderLabelStyle

Gets the actual style that is applied to the header label. This property contains the merged result of the HeaderLabelStyle and the default style.

Declaration

cs-api-definition
public Style ActualHeaderLabelStyle { get; }

Property Value

Style

CancelPromptRequestCommand

Gets or sets the command executed when a cancel prompt request is submitted.

Declaration

cs-api-definition
public ICommand CancelPromptRequestCommand { get; set; }

Property Value

ICommand

ControlTemplate

Gets or sets the control template that defines the visual structure of the DataGridAIPromptView.

Declaration

cs-api-definition
public ControlTemplate ControlTemplate { get; set; }

Property Value

ControlTemplate

EmptyContentTemplate

Gets or sets the template used to display content when no suggestions are available.

Declaration

cs-api-definition
public DataTemplate EmptyContentTemplate { get; set; }

Property Value

DataTemplate

HeaderLabelStyle

Gets or sets the style of the that represents the header.

Declaration

cs-api-definition
public Style HeaderLabelStyle { get; set; }

Property Value

Style

InputText

Gets or sets the text of the input field.

Declaration

cs-api-definition
public string InputText { get; set; }

Property Value

string

IsEmptyContentVisible

Gets or sets a value indicating whether the empty content template should be visible when no suggestions are available.

Declaration

cs-api-definition
public bool IsEmptyContentVisible { get; set; }

Property Value

bool

IsRecentPromptsVisible

Gets or sets a value indicating whether the recent prompts section is visible.

Declaration

cs-api-definition
public bool IsRecentPromptsVisible { get; set; }

Property Value

bool

IsSuggestedPromptsVisible

Gets or sets a value indicating whether the suggested prompts section is visible.

Declaration

cs-api-definition
public bool IsSuggestedPromptsVisible { get; set; }

Property Value

bool

PromptInputStyle

Gets or sets the style of the DataGridAIPromptInput.

Declaration

cs-api-definition
public Style PromptInputStyle { get; set; }

Property Value

Style

PromptRequestCommand

Gets or sets the command executed when a prompt request is submitted.

Declaration

cs-api-definition
public ICommand PromptRequestCommand { get; set; }

Property Value

ICommand

RecentPrompts

Gets or sets the collection of recent prompts.

Declaration

cs-api-definition
public IEnumerable<string> RecentPrompts { get; set; }

Property Value

IEnumerable<string>

SubmitPromptOnSelection

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.

Declaration

cs-api-definition
public bool SubmitPromptOnSelection { get; set; }

Property Value

bool

SuggestedPrompts

Gets or sets the collection of suggested prompts.

Declaration

cs-api-definition
public IEnumerable<string> SuggestedPrompts { get; set; }

Property Value

IEnumerable<string>

SuggestionsViewStyle

Gets or sets the style of the DataGridAISuggestionsView.

Declaration

cs-api-definition
public Style SuggestionsViewStyle { get; set; }

Property Value

Style

Methods

OnApplyTemplate()

Declaration

cs-api-definition
protected override void OnApplyTemplate()

Events

CancelPromptRequest

Occurs when the user requests to cancel the current processing operation by clicking the stop button.

Declaration

cs-api-definition
public event EventHandler CancelPromptRequest

Event Value

EventHandler

PromptRequest

Occurs when a prompt is requested from the user on send or completed action.

Declaration

cs-api-definition
public event EventHandler<DataGridPromptRequestEventArgs> PromptRequest

Event Value

EventHandler<DataGridPromptRequestEventArgs>