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
public ChatReplyPreviewBubbleElement()
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 ChatReplyPreviewBubbleElement instances when neither TimestampFormat nor TimestampFormatter is set. Forwards to DefaultTimestampFormat so the setting is shared with ChatReplyBubbleElement.
public static string DefaultTimestampFormat { get; set; }
Gets or sets the message this bubble represents.
public ChatMessage Message { get; set; }
Gets the preview text label element.
public LightVisualElement PreviewTextLabel { get; }
Gets the remove button element.
public LightVisualButtonElement RemoveButton { get; }
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.
Creates the remove button element.
protected virtual LightVisualButtonElement CreateRemoveButton()
Disposes managed resources.
protected override void DisposeManagedResources()
Overrides:
Gets the preview text from the message.
Initializes the default field values.
protected override void InitializeFields()
Overrides:
Updates the content based on the message.
protected virtual void UpdateContent()
Events
Occurs when the remove button is clicked.
public event EventHandler RemoveClicked