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
ActualEmptyContentProperty
BindableProperty
Identifies the ActualEmptyContent property.
public static readonly BindableProperty ActualEmptyContentProperty
ActualHeaderLabelStyleProperty
BindableProperty
Identifies the ActualHeaderLabelStyle property.
public static readonly BindableProperty ActualHeaderLabelStyleProperty
ActualIconTextProperty
BindableProperty
Identifies the ActualIconText property.
public static readonly BindableProperty ActualIconTextProperty
ActualPlaceholderProperty
BindableProperty
Identifies the ActualPlaceholder property.
public static readonly BindableProperty ActualPlaceholderProperty
ActualSegmentedControlStyleProperty
BindableProperty
Identifies the ActualSegmentedControlStyle property.
public static readonly BindableProperty ActualSegmentedControlStyleProperty
AreRecentSemanticSearchesVisibleProperty
BindableProperty
Identifies the AreRecentSemanticSearchesVisible property.
public static readonly BindableProperty AreRecentSemanticSearchesVisibleProperty
AreRecentTextSearchesVisibleProperty
BindableProperty
Identifies the AreRecentTextSearchesVisible property.
public static readonly BindableProperty AreRecentTextSearchesVisibleProperty
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
IconTextProperty
BindableProperty
Identifies the IconText property.
public static readonly BindableProperty IconTextProperty
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
IsSemanticSearchOptionVisibleProperty
BindableProperty
Identifies the IsSemanticSearchOptionVisible property.
public static readonly BindableProperty IsSemanticSearchOptionVisibleProperty
IsSuggestedPromptsVisibleProperty
BindableProperty
Identifies the IsSuggestedPromptsVisible property.
public static readonly BindableProperty IsSuggestedPromptsVisibleProperty
IsTextSearchOptionVisibleProperty
BindableProperty
Identifies the IsTextSearchOptionVisible property.
public static readonly BindableProperty IsTextSearchOptionVisibleProperty
PlaceholderProperty
BindableProperty
Identifies the Placeholder property.
public static readonly BindableProperty PlaceholderProperty
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
RecentSemanticSearchesProperty
BindableProperty
Identifies the RecentSemanticSearches property.
public static readonly BindableProperty RecentSemanticSearchesProperty
RecentTextSearchesProperty
BindableProperty
Identifies the RecentTextSearches property.
public static readonly BindableProperty RecentTextSearchesProperty
SearchModeProperty
BindableProperty
Identifies the SearchMode property.
public static readonly BindableProperty SearchModeProperty
SearchViewStyleProperty
BindableProperty
Identifies the SearchViewStyle property.
public static readonly BindableProperty SearchViewStyleProperty
SegmentedControlStyleProperty
BindableProperty
Identifies the SegmentedControlStyle property.
public static readonly BindableProperty SegmentedControlStyleProperty
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
ViewModeProperty
BindableProperty
Identifies the ViewMode property.
public static readonly BindableProperty ViewModeProperty
Properties
Gets the empty content string that corresponds to the active view mode.
public string ActualEmptyContent { get; }
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 the actual icon text applied to the input, computed from IconText if set, or automatically from ViewMode and SearchMode.
public string ActualIconText { get; }
Gets the actual placeholder text applied to the input, computed based on the active ViewMode and SearchMode.
public string ActualPlaceholder { get; }
Gets the actual style that is applied to the segmented control. This property contains the merged result of the SegmentedControlStyle and the default style.
public Style ActualSegmentedControlStyle { get; }
Gets or sets a value indicating whether recent semantic search history is visible.
public bool AreRecentSemanticSearchesVisible { get; set; }
Gets or sets a value indicating whether recent text search history is visible.
public bool AreRecentTextSearchesVisible { get; set; }
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 the icon text (glyph) displayed in the input. When set, overrides the automatic icon selection based on ViewMode and SearchMode.
public string IconText { 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 semantic search mode is enabled.
public bool IsSemanticSearchOptionVisible { get; set; }
Gets or sets a value indicating whether the suggested prompts section is visible.
public bool IsSuggestedPromptsVisible { get; set; }
Gets or sets a value indicating whether the keyword search mode is enabled.
public bool IsTextSearchOptionVisible { get; set; }
Gets or sets the placeholder text of the input field, computed based on the active ViewMode and SearchMode.
public string Placeholder { 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 the collection of recent semantic searches.
public IEnumerable<string> RecentSemanticSearches { get; set; }
Gets or sets the collection of recent keyword searches.
public IEnumerable<string> RecentTextSearches { get; set; }
Gets or sets the currently active search mode of the DataGridAISearchView.
public DataGridAISearchMode SearchMode { get; set; }
SearchViewStyle
Style
Gets or sets the style of the DataGridAISearchView.
public Style SearchViewStyle { get; set; }
Gets or sets the style of the RadSegmentedControl that switches between Search and AI Assistant modes.
public Style SegmentedControlStyle { 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; }
Gets or sets the active view mode (Search or AI Assistant).
public DataGridAIViewMode ViewMode { 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 the user submits the input (via Enter or the send button).
public event EventHandler Completed
Occurs when a prompt is requested from the user on send or completed action.
public event EventHandler<DataGridPromptRequestEventArgs> PromptRequest
Occurs when a recent search item is selected from the DataGridAISearchView.
public event EventHandler<string> RecentSearchSelected