ClassChatReplyPreviewElement
Represents the reply preview element that is shown above the input text box when replying to messages. Supports multiple messages, each displayed in its own removable bubble.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ChatReplyPreviewElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementChatReplyPreviewElement
Implements:
Inherited Members
Constructors
ChatReplyPreviewElement()
Initializes a new instance of the ChatReplyPreviewElement class.
Declaration
public ChatReplyPreviewElement()
Properties
BubblesStack
Gets the bubbles stack element.
Declaration
public StackLayoutElement BubblesStack { get; }
Property Value
Messages
Gets the messages being replied to.
Declaration
public IReadOnlyList<ChatMessage> Messages { get; }
Property Value
IReadOnlyList<ChatMessage>
ReplyToMessage
Gets or sets the message being replied to (first message for multi-reply scenarios).
Declaration
public ChatMessage ReplyToMessage { get; set; }
Property Value
Methods
AddMessage(ChatMessage)
Adds a message to the reply preview.
Declaration
public virtual void AddMessage(ChatMessage message)
Parameters
message
The message to add.
ArrangeOverride(SizeF)
Arranges the child elements.
ClearBubbles()
Clears all bubble elements.
Declaration
protected virtual void ClearBubbles()
CreateBubblesStack()
Creates the stack element for bubbles.
Declaration
protected virtual StackLayoutElement CreateBubblesStack()
Returns
CreateChildElements()
Creates the child elements.
Declaration
protected override void CreateChildElements()
Overrides
CreateMessageBubble(ChatMessage)
Creates a bubble element for a message.
Declaration
protected virtual ChatReplyPreviewBubbleElement CreateMessageBubble(ChatMessage message)
Parameters
message
Returns
DisposeManagedResources()
Disposes managed resources.
Declaration
protected override void DisposeManagedResources()
Overrides
InitializeFields()
Initializes the default field values.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the element.
OnCloseButtonClicked(EventArgs)
Raises the CloseButtonClicked event.
Declaration
protected virtual void OnCloseButtonClicked(EventArgs e)
Parameters
e
OnMessageRemoved(ChatMessage)
Raises the MessageRemoved event.
Declaration
protected virtual void OnMessageRemoved(ChatMessage message)
Parameters
message
RemoveMessage(ChatMessage)
Removes a message from the reply preview.
Declaration
public virtual void RemoveMessage(ChatMessage message)
Parameters
message
The message to remove.
Show(ChatMessage)
Shows the reply preview for the specified message.
Declaration
public virtual void Show(ChatMessage message)
Parameters
message
The message being replied to.
ShowMultiple(IReadOnlyList<ChatMessage>)
Shows the reply preview for multiple messages.
Declaration
public virtual void ShowMultiple(IReadOnlyList<ChatMessage> messagesToShow)
Parameters
messagesToShow
IReadOnlyList<ChatMessage>
The messages being replied to.
UpdateContent()
Updates the content based on the messages.
Declaration
protected virtual void UpdateContent()
Events
CloseButtonClicked
Occurs when all messages are removed (close all clicked or last message removed).
MessageRemoved
Occurs when a specific message is removed from the reply list.
Declaration
public event EventHandler<ChatMessage> MessageRemoved
Event Value