The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator Syncfusion Team November 25, 2008 12:40 PM UTC
I am not sure I understand the question. Do you want to change the color on the WPF default context menu for a textbox? (the Copy, Paste,... menu)
LTLionel ThiebautNovember 25, 2008 12:46 PM UTC
In a context menu, the items have background = white and textcolor = black.
When, with the mouse, I select an item : his line have background = blue and textcolor = black. I'd like to know if in the last case, I can change textcolor to put it in white.
ADAdministrator Syncfusion Team November 25, 2008 01:20 PM UTC
The ContextMenu is a WPF object and not part of the Syncfusion library. So, there is no property within the Syncfusion library that would control this behavior.
Just looking at the behavior of the ContextMenu, I think it would be very difficult to change this text color under the selection. It is simple to change the background and foreground of the entire control using : menu.Background = Brushes.Red; menu.Foreground = Brushes.White;
but I think what is happening when you see the blue selection is that a separate frame using an alphablended color is being drawn over the selection. This means the black text you are seeing under the blue frame is the original text just bleeding through the selection frame. If this is how things are working, I am not sure how to change just the font color of the text under the selection frame.