Context Menu

Mar 1, 2010 at 2:40 AM
Edited Mar 1, 2010 at 2:41 AM

Hi All,

I have a DataGrid that lists a number of paths to images. I'd like to allow users to right click in a given cell and allow them to pick from a ContextMenu of items. (e.g. Resize, Delete, etc.)

The click event of the context menu does not seem to give me a ref. to the cell that was right clicked on.

I've found many articles talking about how to traverse the visual tree and other very complex methods of doing this.

It seems like it should be simple (and I'm a beginner). Does anyone know if there's an easy way to get hold of the contents of the cell when the Click even it fired from the ContextMenu?