Represents the reply bubble element that is shown above a reply message, displaying information about the original message.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ChatReplyBubbleElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementChatReplyBubbleElement...
Implements:
Inherited Members
Constructors
public ChatReplyBubbleElement()
Properties
Gets the accent bar element.
public LightVisualElement AccentBar { get; }
Gets the author label element.
public LightVisualElement AuthorLabel { get; }
Gets or sets the default timestamp format string used by all ChatReplyBubbleElement instances when neither TimestampFormat nor TimestampFormatter is set. Forwards to DefaultTimestampFormat so the setting is shared with ChatReplyPreviewBubbleElement.
public static string DefaultTimestampFormat { get; set; }
Gets the preview text label element.
public LightVisualElement PreviewTextLabel { get; }
Gets or sets the message that this bubble refers to (the message being replied to).
public ChatMessage ReplyToMessage { get; set; }
Gets or sets the timestamp format string used by this bubble. Takes precedence over DefaultTimestampFormat but is overridden by TimestampFormatter. Accepts any standard or custom DateTime format string (e.g. "g", "t", "yyyy-MM-dd HH:mm").
public string TimestampFormat { get; set; }
Gets or sets a custom timestamp formatting delegate. When set, it overrides both TimestampFormat and DefaultTimestampFormat.
public Func<DateTime, string> TimestampFormatter { get; set; }
Methods
Creates the accent bar element.
Creates the author label element.
Creates the child elements.
protected override void CreateChildElements()
Overrides:
Creates the preview text label element.
Gets the preview text from the original message.
Initializes the default field values.
protected override void InitializeFields()
Overrides:
Handles the mouse down event.
Handles the mouse enter event.
Handles the mouse leave event.
Raises the ReplyBubbleClicked event.
protected virtual void OnReplyBubbleClicked(ChatMessage replyToMessage)
Updates the content based on the original message.
protected virtual void UpdateContent()
Events
Occurs when the reply bubble is clicked.
public event EventHandler<ChatMessage> ReplyBubbleClicked