New to Telerik UI for WPF? Start a free 30-day trial
Displaying Standard Clipboard Context Menu in RichTextBox
Updated on Feb 23, 2026
Environment
| Product | UI for WPF RichTextBox |
| Version | 2023.1.315 |
Description
How to modify the context menu of RadRichTextBox for WPF, in order to have only the standard clipboard operations - copy, cut and paste.
Solution
To achieve this, you can use the Showing event of the RadRichTextBox' ContextMenu. This will allow you to remove all other menu items and leave only the ones with the clipboard operations.
C#
var contextMenu = (Telerik.Windows.Controls.RichTextBoxUI.ContextMenu)rtb.ContextMenu;
contextMenu.Showing += ContextMenu_Showing;
C#
private void ContextMenu_Showing(object sender, ContextMenuEventArgs e)
{
// removes the last two groups from the context menu and leaves only the group with the clipboard operations
e.ContextMenuGroupCollection.RemoveAt(1);
e.ContextMenuGroupCollection.RemoveAt(1);
}
An alternative approach would be to create a custom ContextMenuContentBuilder and modify the menu there.
Both approaches are shown in the following help article.