New to Telerik UI for .NET MAUI? Start a free 30-day trial

Chat Time Break

The TimeBreak item of the RadChat control encapsulates a group of messages according to a certain condition, such as given time intervals or read/unread messages. It is visualized as a dividing line across the messages board with a text message attached to it.

TimeBreak derives from ChatItem and provides an additional Text property which holds the string message.

Adding a Time Break

The following example shows how to create a sample TimeBreak item:

chat.Items.Add(new TextMessage { Author = bot, Text = "Hello there" });
chat.Items.Add(new TimeBreak() { Text = "Unread" });
chat.Items.Add(new TextMessage() { Author = bot, Text = "How are you today?" });

See Also

In this article