Class
ChatMessageContextMenu

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:

cs-api-definition
public class ChatMessageContextMenu : RadContextMenu, IComponent, IDisposable, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentRadContextMenuChatMessageContextMenu

Implements: IAnalyticsProviderIComponentIDisposable

Inherited Members RadContextMenu.Show()RadContextMenu.Show(int, int)RadContextMenu.Show(Point)RadContextMenu.Show(Point, RadDirection)RadContextMenu.Show(Control, int, int)RadContextMenu.Show(Control, Point)RadContextMenu.Show(Control, Point, RadDirection)RadContextMenu.Show(RadItem, int, int)RadContextMenu.Show(RadItem, Point)RadContextMenu.Show(RadItem, Point, RadDirection)RadContextMenu.Show(RadItem, int, RadDirection)RadContextMenu.OnDropDownOpening(CancelEventArgs)RadContextMenu.OnDropDownClosing(CancelEventArgs)RadContextMenu.OnDropDownOpened()RadContextMenu.OnDropDownClosed()RadContextMenu.ItemsRadContextMenu.ThemeNameRadContextMenu.ImageListRadContextMenu.DropDownRadContextMenu.AnimationEnabledRadContextMenu.AnimationFramesRadContextMenu.AnimationTypeRadContextMenu.EnableAnalyticsRadContextMenu.DropDownOpeningRadContextMenu.DropDownClosingRadContextMenu.DropDownOpenedRadContextMenu.DropDownClosedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.CanRaiseEventsComponent.EventsComponent.SiteComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

ChatMessageContextMenu(RadElement)

Initializes a new instance of the ChatMessageContextMenu class.

Declaration

cs-api-definition
public ChatMessageContextMenu(RadElement ownerElement)

Parameters

ownerElement

RadElement

Properties

ContextElement

Gets the element that the context menu was opened for.

Declaration

cs-api-definition
public BaseChatItemElement ContextElement { get; }

Property Value

BaseChatItemElement

ContextMessage

Gets the message that the context menu was opened for.

Declaration

cs-api-definition
public ChatMessage ContextMessage { get; }

Property Value

ChatMessage

CopyMenuItem

Gets the Copy menu item.

Declaration

cs-api-definition
public RadMenuItem CopyMenuItem { get; }

Property Value

RadMenuItem

DeleteMenuItem

Gets the Delete menu item.

Declaration

cs-api-definition
public RadMenuItem DeleteMenuItem { get; }

Property Value

RadMenuItem

EditMenuItem

Gets the Edit menu item.

Declaration

cs-api-definition
public RadMenuItem EditMenuItem { get; }

Property Value

RadMenuItem

ReplyMenuItem

Gets the Reply menu item.

Declaration

cs-api-definition
public RadMenuItem ReplyMenuItem { get; }

Property Value

RadMenuItem

Methods

CreateMenuItems()

Creates the menu items.

Declaration

cs-api-definition
protected virtual void CreateMenuItems()

Dispose(bool)

Disposes the context menu resources.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides RadContextMenu.Dispose(bool)

Show(ChatMessage, BaseChatItemElement, Point)

Shows the context menu for the specified message and element.

Declaration

cs-api-definition
public virtual void Show(ChatMessage message, BaseChatItemElement element, Point location)

Parameters

message

ChatMessage

The chat message.

element

BaseChatItemElement

The message element.

location

Point

The screen location to show the menu.

Events

CopyClicked

Occurs when the Copy menu item is clicked.

Declaration

cs-api-definition
public event EventHandler<ChatMessage> CopyClicked

Event Value

EventHandler<ChatMessage>

DeleteClicked

Occurs when the Delete menu item is clicked.

Declaration

cs-api-definition
public event EventHandler<ChatMessage> DeleteClicked

Event Value

EventHandler<ChatMessage>

EditClicked

Occurs when the Edit menu item is clicked.

Declaration

cs-api-definition
public event EventHandler<ChatMessage> EditClicked

Event Value

EventHandler<ChatMessage>

ReplyClicked

Occurs when the Reply menu item is clicked.

Declaration

cs-api-definition
public event EventHandler<ChatMessage> ReplyClicked

Event Value

EventHandler<ChatMessage>