ClassChatReplyPreviewBubbleElement
Represents a single bubble in the reply preview showing one message with a remove button.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ChatReplyPreviewBubbleElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementChatReplyPreviewBubbleElement
Implements:
Inherited Members
Constructors
ChatReplyPreviewBubbleElement()
Declaration
public ChatReplyPreviewBubbleElement()
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 ChatReplyPreviewBubbleElement instances when neither TimestampFormat nor TimestampFormatter is set. Forwards to DefaultTimestampFormat so the setting is shared with ChatReplyBubbleElement.
Declaration
public static string DefaultTimestampFormat { get; set; }
Property Value
Message
Gets or sets the message this bubble represents.
PreviewTextLabel
Gets the preview text label element.
Declaration
public LightVisualElement PreviewTextLabel { get; }
Property Value
RemoveButton
Gets the remove button element.
Declaration
public LightVisualButtonElement RemoveButton { get; }
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
CreateRemoveButton()
Creates the remove button element.
Declaration
protected virtual LightVisualButtonElement CreateRemoveButton()
Returns
DisposeManagedResources()
Disposes managed resources.
Declaration
protected override void DisposeManagedResources()
Overrides
FormatTimestamp(DateTime)
GetPreviewText()
Gets the preview text from the message.
InitializeFields()
Initializes the default field values.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the element.
UpdateContent()
Updates the content based on the message.
Declaration
protected virtual void UpdateContent()
Events
RemoveClicked
Occurs when the remove button is clicked.