Hi NA,
The color of the selected text and the corresponding background area is governed by the Operating System and this behavior cannot be customized.
As to the context menus, you can use
RadDropDownMenu instead of the default
ContextMenu. The right approach to do this is by code. In the targeted control's
MouseDown event handler, you should create and show the context menu.
Please refer to the snippet below:
private void radButton1_MouseDown(object sender, MouseEventArgs e) |
{ |
if (e.Button == MouseButtons.Right) |
{ |
RadDropDownMenu contextMenu = new RadDropDownMenu(); |
|
contextMenu.BeginInit(); |
|
RadMenuItem item = new RadMenuItem("First item"); |
item.Click += new EventHandler(firstItem_Click); |
contextMenu.Items.Add(item); |
|
RadMenuItem item2 = new RadMenuItem("Second item"); |
item2.Click += new EventHandler(secondItem_Click); |
contextMenu.Items.Add(item2); |
|
contextMenu.EndInit(); |
|
contextMenu.Show(Control.MousePosition); |
} |
} |
I hope this helps. If you have additional questions, do not hesitate to contact me.
Sincerely yours,
Nikolay
the Telerik team