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

Card Message

The most basic card is the CardMessage. It can display data in a structured manner through the following properties:

  • Title—Gets or sets the title for the CardMessage instance. It is of the type of string.
  • SubTitle—Gets or sets the subtitle for the CardMessage instance. It is of the type of string.
  • Text—Gets or sets the text for the CardMessage instance. It is of the type of string.

Each card needs to have an Author that is passed through its constructor.

Defining a CardMessage

CardMessage cardMessage = new CardMessage(this.currentAuthor); 
 
cardMessage.ActionResultsOrientation = Orientation.Vertical; 
cardMessage.Title = "Stenly Grigorov"; 
cardMessage.SubTitle = "Senior Front-end Developer "; 
cardMessage.Text = "Stenly has an experience of 5 years as a front-end developer."; 
 
chat.AddMessage(cardMessage); 
RadChat with a CardMessage

RadChat with a CardMessage

In this article
Not finding the help you need?