Hi, I've got a project in which I'm trying to create a ToolboxContol that has a ContextMenu associated with it. Depending on the type of activity that is right-clicked, I want the menu to show different options. I figured that the easiest way to do this
is to attach a handler to the ToolboxControl's PreviewMouseRightButtonDown event, in which I repopulate the menu with the appropriate options before it is shown.
There's one problem though. I can't find any way to determine which activity has been right-clicked. The ToolboxControl's SelectedItem activity tells you which one is selected, but right-clicking doesn't select an activity, and I can't find any way to identify
the activity that is currently highlighted by mouse-over. Is there any way to do what I want here?
View Complete Post