New to Telerik UI for WinUI? Download free 30-day trial

List Message

Specific for the ListMessage is that it has to be populated with a source collection and can have its SelectionMode set. It exposes the following properties:

  • DisplayPosition—This property is of the type of the MessageDisplayPosition and allows you to specify the position of the message.
  • Author—The author of the message.
  • Source—Property of the type of IEnumerable, which is used to display entries in the list message.
  • SelectionMode—This property controls the selection mode of the displayed entries. It is of the type of ListViewSelectionMode.
  • CreationDate—This property holds a DateTime object of the message's creation date.

Defining a ListMessage

List<string> coffeeTypes = new List<string> 
    "Caffe Latte", 
    "Cafe mocha", 
    "Cuban espresso", 
    "Iced Coffee", 
ListMessage listMessage = new ListMessage(MessageDisplayPosition.Inline, this.currentAuthor, coffeeTypes, ListViewSelectionMode.Multiple, DateTime.Now);; 
RadChat with a ListMessage

RadChat with a ListMessage

In this article
Not finding the help you need?