tagged [contextmenu]

C# - Detecting if the SHIFT key is held when opening a context menu

C# - Detecting if the SHIFT key is held when opening a context menu In my C# application I want to display a context menu, but I want to add special options to the menu if the SHIFT key is being held ...

10 Jun at 05:12

c# WinForms - Keep a ContextMenu from closing after a click on certain Items

c# WinForms - Keep a ContextMenu from closing after a click on certain Items I'm using System.Windows.Forms.ContextMenu. I want to make it so when you click some of the buttons, it doesn't close the m...

1 Jan at 05:7

EventHandler with custom arguments

EventHandler with custom arguments I've been looking for an answer for about an hour on Google but I did not found exactly what I'm looking for. Basically, I have a static Helper class that helps perf...

13 Jun at 12:3

How to reference right-clicked object in WPF Context Menu item click event handler?

How to reference right-clicked object in WPF Context Menu item click event handler? In WPF application there is a `Grid` with a number of objects (they are derived from a custom control). I want to pe...

12 Jan at 14:4

WPF: Displaying a Context Menu for a GridView's Items

WPF: Displaying a Context Menu for a GridView's Items I have the following `GridView`: ```

23 May at 10:31