menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChatItem - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    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

    ResponseToolbarItemsProperty

    Identifies the ResponseToolbarItems dependency property.

    Declaration
    public static readonly DependencyProperty ResponseToolbarItemsProperty
    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

    ResponseToolbarItems

    Gets or sets the collection of response toolbar items.

    Declaration
    public ObservableCollection<ResponseToolbarItem> ResponseToolbarItems { get; set; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<ResponseToolbarItem>
    Remarks

    This property allows customization of toolbar actions available for response messages.

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved