Provides centralized formatting of TimeStamp values displayed by chat reply bubbles (both the in-conversation bubble and the input preview bubble).
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public static class ChatTimestampFormatter
Inheritance: objectChatTimestampFormatter
Properties
Gets or sets the global default timestamp format string used when no per-instance format or formatter is configured. When null or empty, the built-in adaptive logic is used (short time for today's messages, short date + time otherwise).
public static string DefaultTimestampFormat { get; set; }
Methods
Formats the supplied timestamp using the configured resolution order.
Returns Empty when timeStamp equals the default value.
public static string Format(DateTime timeStamp, string format, Func<DateTime, string> formatter)
The timestamp to format.
formatstringAn optional instance-level format string overriding the global default.
formatterFunc<DateTime, string>An optional instance-level formatter delegate overriding all format strings.
Returns: