Class RichTextBox
Represents a class which specifies the custom text box for the input text area in the SfAIAssistView.
Inheritance
System.Object
RichTextBox
Namespace: Syncfusion.UI.Xaml.Chat
Assembly: Syncfusion.Chat.WinUI.dll
Syntax
public class RichTextBox : TextBox
Constructors
RichTextBox()
Initializes a new instance of the RichTextBox class.
Declaration
public RichTextBox()
Fields
InputToolbarItemsProperty
Identifies the InputToolbarItems dependency property.
Declaration
public static readonly DependencyProperty InputToolbarItemsProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Properties
InputToolbarItems
Gets or sets the collection of input toolbar items.
Declaration
public ObservableCollection<InputToolbarItem> InputToolbarItems { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<InputToolbarItem> |
Remarks
This property allows you to customize the toolbar actions available for input text area.
By You can add custom toolbar items to this collection.
Example:
// Add a custom toolbar item
myAssistView.InputToolbarItems.Add(new InputToolbarItem
{
Icon = "C:/Pictures/attachment.png",
Tooltip = "upload",
IsEnabled = true,
Visible = true
});
Methods
OnApplyTemplate()
Builds the visual tree for the RichTextBox class.
Declaration
protected override void OnApplyTemplate()
OnKeyDown(KeyRoutedEventArgs)
Declaration
protected override void OnKeyDown(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Input.KeyRoutedEventArgs | e |