ClassChatMessageContextMenu
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
ChatMessageContextMenu(RadElement)
Initializes a new instance of the ChatMessageContextMenu class.
Declaration
public ChatMessageContextMenu(RadElement ownerElement)
Parameters
ownerElement
Properties
ContextElement
Gets the element that the context menu was opened for.
Declaration
public BaseChatItemElement ContextElement { get; }
Property Value
ContextMessage
Gets the message that the context menu was opened for.
CopyMenuItem
Gets the Copy menu item.
DeleteMenuItem
Gets the Delete menu item.
EditMenuItem
Gets the Edit menu item.
ReplyMenuItem
Gets the Reply menu item.
Methods
CreateMenuItems()
Creates the menu items.
Declaration
protected virtual void CreateMenuItems()
Dispose(bool)
Disposes the context menu resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
Overrides
Show(ChatMessage, BaseChatItemElement, Point)
Shows the context menu for the specified message and element.
Declaration
public virtual void Show(ChatMessage message, BaseChatItemElement element, Point location)
Parameters
message
The chat message.
element
The message element.
location
The screen location to show the menu.
Events
CopyClicked
Occurs when the Copy menu item is clicked.
Declaration
public event EventHandler<ChatMessage> CopyClicked
Event Value
DeleteClicked
Occurs when the Delete menu item is clicked.
Declaration
public event EventHandler<ChatMessage> DeleteClicked
Event Value
EditClicked
Occurs when the Edit menu item is clicked.
Declaration
public event EventHandler<ChatMessage> EditClicked
Event Value
ReplyClicked
Occurs when the Reply menu item is clicked.
Declaration
public event EventHandler<ChatMessage> ReplyClicked
Event Value