Represents an AI prompt input control with a dropdown showing suggested and recent prompts. Combines DataGridAIPromptInput with DataGridAISuggestionsView in a RadPopup dropdown.
Definition
Namespace:Telerik.Maui.Controls.DataGrid
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class DataGridAIPromptDropDown : RadLayout
Inheritance: objectRadLayoutDataGridAIPromptDropDown
Inherited Members
Constructors
Initializes a new instance of the DataGridAIPromptDropDown class.
public DataGridAIPromptDropDown()
Fields
ActualEmptyContentProperty
BindableProperty
Identifies the ActualEmptyContent property.
public static readonly BindableProperty ActualEmptyContentProperty
ActualIconTextProperty
BindableProperty
Identifies the ActualIconText property.
public static readonly BindableProperty ActualIconTextProperty
ActualPlaceholderProperty
BindableProperty
Identifies the ActualPlaceholder property.
public static readonly BindableProperty ActualPlaceholderProperty
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
DropDownBackgroundColorProperty
BindableProperty
Identifies the DropDownBackgroundColor property.
public static readonly BindableProperty DropDownBackgroundColorProperty
DropDownBorderBrushProperty
BindableProperty
Identifies the DropDownBorderBrush property.
public static readonly BindableProperty DropDownBorderBrushProperty
DropDownBorderThicknessProperty
BindableProperty
Identifies the DropDownBorderThickness property.
public static readonly BindableProperty DropDownBorderThicknessProperty
DropDownCornerRadiusProperty
BindableProperty
Identifies the DropDownCornerRadius property.
public static readonly BindableProperty DropDownCornerRadiusProperty
EmptyContentTemplateProperty
BindableProperty
Identifies the EmptyContentTemplate property.
public static readonly BindableProperty EmptyContentTemplateProperty
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
OpenOnFocusProperty
BindableProperty
Identifies the OpenOnFocus property.
public static readonly BindableProperty OpenOnFocusProperty
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
StyleProperty
BindableProperty
Identifies the Style property.
public static readonly BindableProperty StyleProperty
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 localized empty content string for the current view mode.
public string ActualEmptyContent { 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, which may be localized based on the current view mode.
public string ActualPlaceholder { 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; }
Gets or sets the background color of the dropdown popup.
public Color DropDownBackgroundColor { get; set; }
DropDownBorderBrush
Brush
Gets or sets the brush used for the border of the dropdown popup.
[TypeConverter(typeof(BrushTypeConverter))]
public Brush DropDownBorderBrush { get; set; }
DropDownBorderThickness
Thickness
Gets or sets the thickness of the border of the dropdown popup.
public Thickness DropDownBorderThickness { get; set; }
DropDownCornerRadius
Thickness
Gets or sets the corner radius of the dropdown popup border.
public Thickness DropDownCornerRadius { get; set; }
EmptyContentTemplate
DataTemplate
Gets or sets the template used to display content when no suggestions are available.
public DataTemplate EmptyContentTemplate { 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 a value indicating whether the popup should open automatically when the input view receives focus.
public bool OpenOnFocus { get; set; }
Gets or sets the placeholder text of the input field. When set, this overrides the default placeholder text which is based on the current view mode and search mode.
public string Placeholder { get; set; }
PromptInputStyle
Style
Gets or sets the style of the DataGridAIPromptInput used for text input.
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; }
Style
Style
Gets or sets the style applied to the DataGridAIPromptDropDown. The final applied style is a merge of the explicit style, implicit theme style, and default style.
public Style Style { get; set; }
Gets or sets a value indicating whether selecting a prompt should automatically submit the request. When true, selecting a prompt closes the popup and invokes the PromptRequestCommand. 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 current view mode of the dropdown (Search or AI Assistant).
public DataGridAIViewMode ViewMode { get; set; }
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