New to Telerik UI for WPFStart a free 30-day trial

Text Message

Updated on Sep 15, 2025

The TextMessage is intended to be used for sending a simple string type message. Its constructor accepts the following parameters.

  • String text
  • Author author
  • String status: when having a status defined, the creationDate needs to be set as well.
  • DateTime creationDate: the creationDate parameter can be set optionally.

Example 1: Defining a TextMessage

C#
	var textMessage = new TextMessage(this.currentAuthor, "Some text message", "sent", DateTime.Now);
    textMessage.InlineViewModel.StatusVisibility = Visibility.Visible;

    this.chat.AddMessage(textMessage);

Figure 1: Defining TextMessage

TextMessage with Status set

See Also

In this article
See Also
Not finding the help you need?
Contact Support