Hello, I have an issue with the style of the ContextMenus.
I changed the style of the ContextMenu and it is working for TextBlock and TextBox but on Telerik controls like RadNumericUpDown and RadRichTextBox the context menu looks different.
Let's take for example the menu in the RadNumericUpDown (see attached picture).
I expect that the menu with Cut,Copy,Paste looks like other menus.
I tried to define in RadNumericUpDown.Resources a style for ContextMenu and RadContextMenu (change the Background property) but it doesn't work.
When I change the Foreground property of the TextBlock style inside RadNumericUpDown.Resources, I can see that the text color changed.
I hope you can guide me on this matter.
Thanks,
Alex
Can you post some code showing how you style the context menu of RadNumericUpDown?
About the RadRichTextBox, I will guess the context menu there is a bit more special, so I will recommend you to post your query in the RadRichTextBox for WPF area of the forum or via the support ticketing system.
I fixed the style for the NumericUpDown. We made a TextBox style to set the MaxLength to 8 digits, but we forgot to make it BasedOn TextBox.
Anyway, can you explain what is the control type for the menu? All changes I made on the ContextMenu style didn't affect the menu.
Thank you Martin,
How can I replace it with RadContextMenu and provide same functionality. Can I set the style if is private?
I can't just add a Context Menu because clicking on the control border will open my custom menu but while clicking in the center it will open the EditorContextMenu.