Class ChatItem
Represents an item inside the SfAIAssistView control.
Inheritance
System.Object
ChatItem
Namespace: Syncfusion.UI.Xaml.Chat
Assembly: Syncfusion.Chat.WinUI.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 |
---|
Microsoft.UI.Xaml.DependencyProperty |
EditTemplateSelectorProperty
Identifies the EditTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty EditTemplateSelectorProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
ViewTemplateSelectorProperty
Identifies the ViewTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ViewTemplateSelectorProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.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 |
---|
Microsoft.UI.Xaml.Controls.DataTemplateSelector |
ViewTemplateSelector
Gets or sets the template selector for the view mode.
Declaration
public DataTemplateSelector ViewTemplateSelector { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Controls.DataTemplateSelector |
Methods
OnApplyTemplate()
Builds the visual tree for the ChatItem class.
Declaration
protected 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 |