Represents the context menu for chat messages with Reply, Copy, Edit and Delete options.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ChatMessageContextMenu : RadContextMenu, IComponent, IDisposable, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentRadContextMenuChatMessageContextMenu
Implements:
Inherited Members
Constructors
Initializes a new instance of the ChatMessageContextMenu class.
Properties
Gets the element that the context menu was opened for.
public BaseChatItemElement ContextElement { get; }
Gets the message that the context menu was opened for.
public ChatMessage ContextMessage { get; }
Gets the Copy menu item.
public RadMenuItem CopyMenuItem { get; }
Gets the Delete menu item.
public RadMenuItem DeleteMenuItem { get; }
Gets the Edit menu item.
public RadMenuItem EditMenuItem { get; }
Gets the Reply menu item.
public RadMenuItem ReplyMenuItem { get; }
Methods
Creates the menu items.
protected virtual void CreateMenuItems()
Disposes the context menu resources.
Shows the context menu for the specified message and element.
public virtual void Show(ChatMessage message, BaseChatItemElement element, Point location)
The chat message.
elementBaseChatItemElementThe message element.
locationPointThe screen location to show the menu.
Events
Occurs when the Copy menu item is clicked.
public event EventHandler<ChatMessage> CopyClicked
Occurs when the Delete menu item is clicked.
public event EventHandler<ChatMessage> DeleteClicked
Occurs when the Edit menu item is clicked.
public event EventHandler<ChatMessage> EditClicked
Occurs when the Reply menu item is clicked.
public event EventHandler<ChatMessage> ReplyClicked