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

Calendar Message

The CalendarMessage operates with DateTime value type. Its constructors accept the following parameters.

  • DateTime selectedDate
  • MessageDisplayPosition displayPosition
  • Author author
  • DateTime creationDate
  • DateTime displayDate: the creationDate and displayDate parameters are optional. The displayDate parameter is used to control the visible time period when adding the message. If the selectedDate corresponds to a different time period, it would not be visible initially.

Example 1: Defining a CalendarMessage

   DateTime time = new DateTime(2018, 6, 1); 
   CalendarMessage calendarMessage = new CalendarMessage(MessageDisplayPosition.Popup, currentAuthor); 
 
   this.chat.AddMessage(calendarMessage); 

Figure 1: Defining CalendarMessage

Defining CalendarMessage

See Also

In this article