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

Represents an AI input view for DataGrid with customizable styles and commands for prompt requests and cancellations.

Definition

Namespace:Telerik.Maui.Controls.DataGrid

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class DataGridAIPromptInput : RadContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewDataGridAIPromptInput

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView...

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

Constructors

Initializes a new instance of the DataGridAIPromptInput class.

C#
public DataGridAIPromptInput()

Fields

Identifies the ActualClearButtonStyle property.

C#
public static readonly BindableProperty ActualClearButtonStyleProperty

ActualIconStyleProperty

BindableProperty

Identifies the ActualIconStyle property.

C#
public static readonly BindableProperty ActualIconStyleProperty

Identifies the ActualSendButtonStyle property.

C#
public static readonly BindableProperty ActualSendButtonStyleProperty

Identifies the ActualSpeechToTextButtonStyle property.

C#
public static readonly BindableProperty ActualSpeechToTextButtonStyleProperty

Identifies the ActualTextInputStyle property.

C#
public static readonly BindableProperty ActualTextInputStyleProperty

BackgroundColorProperty

BindableProperty

Identifies the BackgroundColor property.

C#
public static readonly BindableProperty BackgroundColorProperty

BackgroundProperty

BindableProperty

Identifies the Background property.

C#
public static readonly BindableProperty BackgroundProperty

BorderBrushProperty

BindableProperty

Identifies the BorderBrush property.

C#
public static readonly BindableProperty BorderBrushProperty

BorderThicknessProperty

BindableProperty

Identifies the BorderThickness property.

C#
public static readonly BindableProperty BorderThicknessProperty

Identifies the CancelPromptRequestCommand property.

C#
public static readonly BindableProperty CancelPromptRequestCommandProperty

ClearButtonStyleProperty

BindableProperty

Identifies the ClearButtonStyle property.

C#
public static readonly BindableProperty ClearButtonStyleProperty

Identifies the ClearButtonVisibility property.

C#
public static readonly BindableProperty ClearButtonVisibilityProperty

ControlTemplateProperty

BindableProperty

Identifies the ControlTemplate property.

C#
public static readonly BindableProperty ControlTemplateProperty

CornerRadiusProperty

BindableProperty

Identifies the CornerRadius property.

C#
public static readonly BindableProperty CornerRadiusProperty

IconStyleProperty

BindableProperty

Identifies the IconStyle property.

C#
public static readonly BindableProperty IconStyleProperty

InputTextProperty

BindableProperty

Identifies the InputText property.

C#
public static readonly BindableProperty InputTextProperty

Identifies the IsSpeechToTextButtonVisible property.

C#
public static readonly BindableProperty IsSpeechToTextButtonVisibleProperty

PaddingProperty

BindableProperty

Identifies the Padding property.

C#
public static readonly BindableProperty PaddingProperty

Identifies the PromptRequestCommand property.

C#
public static readonly BindableProperty PromptRequestCommandProperty

SendButtonStyleProperty

BindableProperty

Identifies the SendButtonStyle property.

C#
public static readonly BindableProperty SendButtonStyleProperty

Identifies the SpeechToTextButtonStyle property.

C#
public static readonly BindableProperty SpeechToTextButtonStyleProperty

StyleProperty

BindableProperty

Identifies the Style property.

C#
public static readonly BindableProperty StyleProperty

TextInputStyleProperty

BindableProperty

Identifies the TextInputStyle property.

C#
public static readonly BindableProperty TextInputStyleProperty

Properties

Gets the actual style that is applied to the clear button. This property contains the merged result of the ClearButtonStyle and the default style.

C#
public Style ActualClearButtonStyle { get; }
Property Value:

A Style that represents the merged clear button style.

Gets the actual style that is applied to the icon. This property contains the merged result of the IconStyle and the default style.

C#
public Style ActualIconStyle { get; }
Property Value:

A Style that represents the merged icon style.

Gets the actual style that is applied to the send button. This property contains the merged result of the SendButtonStyle and the default style.

C#
public Style ActualSendButtonStyle { get; }
Property Value:

A Style that represents the merged send button style.

Gets the actual style that is applied to the speech-to-text button. This property contains the merged result of the SpeechToTextButtonStyle and the default style.

C#
public Style ActualSpeechToTextButtonStyle { get; }
Property Value:

A Style that represents the merged speech-to-text button style.

Gets the actual style that is applied to the inner text input control. This property contains the merged result of the TextInputStyle and the default style.

C#
public Style ActualTextInputStyle { get; }
Property Value:

A Style that represents the merged text input style.

Gets or sets the background brush of the control.

C#
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }

Gets or sets the background color of the control.

C#
public Color BackgroundColor { get; set; }

Gets or sets the border brush of the control.

C#
[TypeConverter(typeof(BrushTypeConverter))]
public Brush BorderBrush { get; set; }

Gets or sets the border thickness of the control.

C#
public Thickness BorderThickness { get; set; }

Gets or sets the command that is executed when the user requests to cancel the current processing operation.

C#
public ICommand CancelPromptRequestCommand { get; set; }

Gets or sets the style of the RadTemplatedButton that represents the clear button.

C#
public Style ClearButtonStyle { get; set; }
Property Value:

A Style that defines the visual appearance of the clear button. When set, this style is merged with the default style.

ClearButtonVisibility

ClearButtonVisibility

Gets or sets the visibility of the clear button.

C#
public ClearButtonVisibility ClearButtonVisibility { get; set; }

ControlTemplate

ControlTemplate

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

C#
public ControlTemplate ControlTemplate { get; set; }
Property Value:

A ControlTemplate that defines the visual tree for the input view.

CornerRadius

CornerRadius

Gets or sets the corner radius of the control.

C#
[TypeConverter(typeof(CornerRadiusTypeConverter))]
public CornerRadius CornerRadius { get; set; }

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

C#
public Style IconStyle { get; set; }
Property Value:

A Style that defines the visual appearance of the icon. When set, this style is merged with the default style.

Gets or sets the text entered in the input field.

C#
public string InputText { get; set; }
Property Value:

A string containing the input text.

Gets or sets the visibility of the speech-to-text button.

C#
public bool? IsSpeechToTextButtonVisible { get; set; }
Property Value:

null (default): Auto - visible when input is empty or when listening. true: Always visible. false: Never visible.

Padding

Thickness

Gets or sets the padding of the control.

C#
public Thickness Padding { get; set; }

Gets or sets the command that is executed when a prompt is requested from the user.

C#
public ICommand PromptRequestCommand { get; set; }

Gets or sets the style of the DataGridAISendButton.

C#
public Style SendButtonStyle { get; set; }
Property Value:

A Style that defines the visual appearance of the send button. When set, this style is merged with the default style.

Gets or sets the style of the RadSpeechToTextButton.

C#
public Style SpeechToTextButtonStyle { get; set; }
Property Value:

A Style that defines the visual appearance of the speech-to-text button. When set, this style is merged with the default style.

Style

Style

Gets or sets the style applied to the DataGridAIPromptInput. This style can define visual properties such as background, border, and layout characteristics. The final applied style is a merge of the explicit style, implicit theme style, and default style.

C#
public Style Style { get; set; }
Property Value:

A Style that defines the visual appearance of the input view.

Gets or sets the style of the RadTextInput used for text input.

C#
public Style TextInputStyle { get; set; }
Property Value:

A Style that defines the visual appearance of the text input. When set, this style is merged with the default style.

Methods

Attempts to set focus to this element.

C#
public bool Focus()
Returns:

bool

Called when the control template is applied.

C#
protected override void OnApplyTemplate()

Stops the speech to text recognition.

If the speech recognizer is currently in the StartingListening or Listening state, this method will stop the recognition process. If the recognizer is not listening, this method has no effect.

C#
public Task StopSpeechToTextRecognitionAsync()
Returns:

Task

Unsets keyboard focus on this element.

C#
public void Unfocus()

Events

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

C#
public event EventHandler CancelPromptRequest

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

C#
public event EventHandler<DataGridPromptRequestEventArgs> PromptRequest