Edit this page

Text Message

The TextMessage is intended to be used for sending a simple string type message. Its constructor provides two overloads.

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

Example 1: Defining a TextMessage

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

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy