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.SfChat.Wpf.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 |
|---|
| System.Windows.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
public override void OnApplyTemplate()
OnPreviewKeyDown(KeyEventArgs)
Invoked when an unhandled System.Windows.UIElement.KeyDown event reaches this element.
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.KeyEventArgs | e | The event data for the key event. |