Class SfAIAssistView
A user interface control that can create modern conversational chatbot experiences in mobile applications. It is a flexible control that shows a conversation between two or more users in a fully customizable layout.
Inheritance
Namespace: Syncfusion.UI.Xaml.Chat
Assembly: Syncfusion.SfChat.Wpf.dll
Syntax
public class SfAIAssistView : Control
Constructors
SfAIAssistView()
Initializes a new instance of the SfAIAssistView class.
Declaration
public SfAIAssistView()
Fields
BannerTemplateProperty
Identifies the BannerTemplate dependency property."/>
Declaration
public static readonly DependencyProperty BannerTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CurrentUserProperty
Identifies the CurrentUser dependency property.
Declaration
public static readonly DependencyProperty CurrentUserProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EditTemplateSelectorProperty
Identifies the EditTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty EditTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MessagesProperty
Identifies the Messages dependency property.
Declaration
public static readonly DependencyProperty MessagesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowTypingIndicatorProperty
Identifies the ShowTypingIndicator dependency property.
Declaration
public static readonly DependencyProperty ShowTypingIndicatorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SuggestionsProperty
Identifies the Suggestions dependency property.
Declaration
public static readonly DependencyProperty SuggestionsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TypingIndicatorProperty
Identifies the TypingIndicator dependency property.
Declaration
public static readonly DependencyProperty TypingIndicatorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ViewTemplateSelectorProperty
Gets or sets the template selector for the view mode.
Declaration
public static readonly DependencyProperty ViewTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
BannerTemplate
Gets or sets the template for the banner content in the chat control.
Declaration
public DataTemplate BannerTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
CurrentUser
Gets or sets the current author of a message.
Declaration
public Author CurrentUser { get; set; }
Property Value
Type |
---|
Author |
EditTemplateSelector
Gets or sets the template selector for the edit mode.
Declaration
public DataTemplateSelector EditTemplateSelector { get; set; }
Property Value
Type |
---|
System.Windows.Controls.DataTemplateSelector |
Messages
Gets or sets the collection of messages to be displayed in the chat.
Declaration
public object Messages { get; set; }
Property Value
Type |
---|
System.Object |
ShowTypingIndicator
Gets or sets a value indicating whether the typing indicator should be displayed at the bottom of the chat control to notify when a user is typing.
Declaration
public bool ShowTypingIndicator { get; set; }
Property Value
Type |
---|
System.Boolean |
Suggestions
Gets or sets the list of items to be displayed as a response to a user message. The suggestions will be displayed above the message typing/input area as part of the footer view.
Declaration
public IEnumerable<string> Suggestions { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<System.String> |
TypingIndicator
Gets or sets the helper to set the settings for the typing indicator.
Declaration
public TypingIndicator TypingIndicator { get; set; }
Property Value
Type |
---|
TypingIndicator |
ViewTemplateSelector
Gets or sets the template selector for the view mode.
Declaration
public DataTemplateSelector ViewTemplateSelector { get; set; }
Property Value
Type |
---|
System.Windows.Controls.DataTemplateSelector |
Methods
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
Events
MenuItemClicked
Occurs when a menu item is clicked in the SfAIAssistView control.
Declaration
public event EventHandler<MenuItemClickedEventArgs> MenuItemClicked
Event Type
Type |
---|
System.EventHandler<MenuItemClickedEventArgs> |
SuggestionSelected
Occurs when the suggestion item is selected in the SfAIAssistView control.
Declaration
public event EventHandler<SuggestionClickedEventArgs> SuggestionSelected
Event Type
Type |
---|
System.EventHandler<SuggestionClickedEventArgs> |