ClassChatReplyBubbleElement
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
ChatReplyBubbleElement()
Declaration
public ChatReplyBubbleElement()
Properties
AccentBar
Gets the accent bar element.
Declaration
public LightVisualElement AccentBar { get; }
Property Value
AuthorLabel
Gets the author label element.
Declaration
public LightVisualElement AuthorLabel { get; }
Property Value
DefaultTimestampFormat
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.
Declaration
public static string DefaultTimestampFormat { get; set; }
Property Value
PreviewTextLabel
Gets the preview text label element.
Declaration
public LightVisualElement PreviewTextLabel { get; }
Property Value
ReplyToMessage
Gets or sets the message that this bubble refers to (the message being replied to).
Declaration
public ChatMessage ReplyToMessage { get; set; }
Property Value
TimestampFormat
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").
TimestampFormatter
Gets or sets a custom timestamp formatting delegate. When set, it overrides both TimestampFormat and DefaultTimestampFormat.
Methods
ArrangeOverride(SizeF)
Arranges the child elements.
CreateAccentBar()
Creates the accent bar element.
Declaration
protected virtual LightVisualElement CreateAccentBar()
Returns
CreateAuthorLabel()
Creates the author label element.
Declaration
protected virtual LightVisualElement CreateAuthorLabel()
Returns
CreateChildElements()
Creates the child elements.
Declaration
protected override void CreateChildElements()
Overrides
CreatePreviewTextLabel()
Creates the preview text label element.
Declaration
protected virtual LightVisualElement CreatePreviewTextLabel()
Returns
FormatTimestamp(DateTime)
GetPreviewText()
Gets the preview text from the original message.
InitializeFields()
Initializes the default field values.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the element.
OnMouseDown(MouseEventArgs)
Handles the mouse down event.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
Overrides
OnMouseEnter(EventArgs)
Handles the mouse enter event.
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
e
Overrides
OnMouseLeave(EventArgs)
Handles the mouse leave event.
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
e
Overrides
OnReplyBubbleClicked(ChatMessage)
Raises the ReplyBubbleClicked event.
Declaration
protected virtual void OnReplyBubbleClicked(ChatMessage replyToMessage)
Parameters
replyToMessage
UpdateContent()
Updates the content based on the original message.
Declaration
protected virtual void UpdateContent()
Events
ReplyBubbleClicked
Occurs when the reply bubble is clicked.
Declaration
public event EventHandler<ChatMessage> ReplyBubbleClicked
Event Value