Class ChatItem
Represents an item inside the SfAIAssistView control.
Inheritance
System.Object
ChatItem
Namespace: Syncfusion.UI.Xaml.Chat
Assembly: Syncfusion.SfChat.Wpf.dll
Syntax
public class ChatItem : ContentControl
Constructors
ChatItem()
Initializes a new instance of the ChatItem class.
Declaration
public ChatItem()
Fields
AuthorProperty
Identifies the Author dependency property.
Declaration
public static readonly DependencyProperty AuthorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EditTemplateSelectorProperty
Identifies the EditTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty EditTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ViewTemplateSelectorProperty
Identifies the ViewTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ViewTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
Author
Gets or sets the information about the author of a message.
Declaration
public Author Author { 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 |
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
ApplyTemplatePrivate()
Builds the visual tree for the ChatItem class.
Declaration
public void ApplyTemplatePrivate()
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnContentChanged(Object, Object)
Declaration
protected override void OnContentChanged(object oldContent, object newContent)
Parameters
Type | Name | Description |
---|---|---|
System.Object | oldContent | |
System.Object | newContent |