Calendar Message
The CalendarMessage operates with DateTime value type. It exposes the following properties:
-
SelectedDate—This property holds the selected date from the calendar message. -
DisplayPosition—This property is of the type of theMessageDisplayPositionand allows you to specify the position of the message. -
Author—The author of the message. -
CreationDate—This property holds a DateTime object of the message's creation date. -
DisplayDate—This parameter is used to control the visible time period when adding the message.
The
CreationDateandDisplayDateparameters are optional. If theSelectedDatecorresponds to a different time period, it would not be visible initially.
Defining a CalendarMessage
var calendarMessage = new CalendarMessage(MessageDisplayPosition.Inline, this.currentAuthor, DateTime.Now);
this.chat.AddMessage(calendarMessage);
