Class RadChat
A component that visualizes chat conversation between two or more participants.
Has a built-in mechanism for displaying time-pickers, action-cards, and other things that bot services commonly use.
Has a built-in Typing
Inherited Members
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll
Syntax
public class RadChat : RadContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IItemConverter<ChatItem>
Constructors
RadChat()
Fields
ActualScrollMediatorModeProperty
Identifies the Actual
Declaration
public static readonly BindableProperty ActualScrollMediatorModeProperty
Field Value
Microsoft.
|
ActualSendMessageCommandProperty
Identifies the Actual
Declaration
public static readonly BindableProperty ActualSendMessageCommandProperty
Field Value
Microsoft.
|
AuthorProperty
Identifies the Author property.
Declaration
public static readonly BindableProperty AuthorProperty
Field Value
Microsoft.
|
AutoScrollModeProperty
Identifies the Auto
Declaration
public static readonly BindableProperty AutoScrollModeProperty
Field Value
Microsoft.
|
BackgroundColorProperty
Identifies the Background
Declaration
public static readonly BindableProperty BackgroundColorProperty
Field Value
Microsoft.
|
InputAreaBackgroundColorProperty
Identifies the Input
Declaration
public static readonly BindableProperty InputAreaBackgroundColorProperty
Field Value
Microsoft.
|
ItemConverterProperty
Identifies the Item
Declaration
public static readonly BindableProperty ItemConverterProperty
Field Value
Microsoft.
|
ItemsSourceProperty
Identifies the Items
Declaration
public static readonly BindableProperty ItemsSourceProperty
Field Value
Microsoft.
|
ItemTemplateSelectorProperty
Identifies the Item
Declaration
public static readonly BindableProperty ItemTemplateSelectorProperty
Field Value
Microsoft.
|
MessageProperty
Identifies the Message property.
Declaration
public static readonly BindableProperty MessageProperty
Field Value
Microsoft.
|
PickerProperty
Identifies the Picker property.
Declaration
public static readonly BindableProperty PickerProperty
Field Value
Microsoft.
|
SendMessageButtonImageProperty
Identifies the Send
Declaration
public static readonly BindableProperty SendMessageButtonImageProperty
Field Value
Microsoft.
|
SendMessageCommandProperty
Identifies the Send
Declaration
public static readonly BindableProperty SendMessageCommandProperty
Field Value
Microsoft.
|
TypingIndicatorProperty
Identifies the Typing
Declaration
public static readonly BindableProperty TypingIndicatorProperty
Field Value
Microsoft.
|
Properties
ActualScrollMediator
Gets or sets the actual Scroll
Declaration
public ScrollMediator ActualScrollMediator { get; }
Property Value
ActualSendMessageCommand
Gets the actual send command that is executed when sending a message. This command will execute the custom Send
Declaration
public ICommand ActualSendMessageCommand { get; }
Property Value
System.
|
Author
Gets or sets the current author of outgoing messages in the chat.
Declaration
public Author Author { get; set; }
Property Value
AutoScrollMode
Gets or sets the mode which defines the automatic scrolling behavior of the Rad
Declaration
public AutoScrollMode AutoScrollMode { get; set; }
Property Value
BackgroundColor
Declaration
public Color BackgroundColor { get; set; }
Property Value
Microsoft.
|
InputAreaBackgroundColor
Gets or sets the background color of the area that the input elements (entry and button) are reside.
Declaration
public Color InputAreaBackgroundColor { get; set; }
Property Value
Microsoft.
|
ItemConverter
Gets or sets the converter that performs the conversion between data and chat items.
Declaration
public IChatItemConverter ItemConverter { get; set; }
Property Value
Items
Gets the collection of chat items.
Declaration
public IList<ChatItem> Items { get; }
Property Value
System.
|
ItemsSource
Gets or sets the items source from which chat items are generated.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
System.
|
ItemTemplateSelector
Gets or sets the template selector for visualizing chat items.
Declaration
public DataTemplateSelector ItemTemplateSelector { get; set; }
Property Value
Microsoft.
|
Message
Gets or sets the message that is typed in the chat entry.
Declaration
public object Message { get; set; }
Property Value
System.
|
Picker
Gets or sets the inline picker of the chat.
Declaration
public View Picker { get; set; }
Property Value
Microsoft.
|
SendMessageButtonImage
Gets or sets the image for the send message button.
Declaration
public ImageSource SendMessageButtonImage { get; set; }
Property Value
Microsoft.
|
SendMessageCommand
Gets or sets the custom command that will be executed when sending a message (when the Send message button is pressed or Enter is pressed).
Declaration
public ICommand SendMessageCommand { get; set; }
Property Value
System.
|
TypingIndicator
Gets or sets the typing indicator displayed when another author is typing.
Declaration
public View TypingIndicator { get; set; }
Property Value
Microsoft.
|
Methods
FocusEntry()
Attemps to set focus to the entry element.
Declaration
public bool FocusEntry()
Returns
System. true if the keyboard focus was set to the entry element; false if the call to this method did not force a focus change. |
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
OnBindingContextChanged()
Declaration
protected override void OnBindingContextChanged()
Overrides
OnPropertyChanged(String)
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
System.
|
ScrollTo(Int32)
Scrolls to the item at the provided index.
Declaration
public void ScrollTo(int index)
Parameters
System. The index of the item to scroll to. |
Events
SendMessage
Raised when a message is sent from the chat by the current author (by clicking the send messsage button or pressing Enter).
Declaration
public event EventHandler SendMessage
Event Type
System.
|