How to add Silverlight 4 ContextMenu to DataGrid row using XAML?
Posted
by Simon_Weaver
on Stack Overflow
See other posts from Stack Overflow
or by Simon_Weaver
Published on 2010-05-06T05:07:05Z
Indexed on
2010/05/12
22:34 UTC
Read the original article
Hit count: 1319
Silverlight 4 has a new ContextMenu
control in the latest toolkit.
I can't find any examples anywhere on how to reliably use this ContextMenu
on a DataGrid
row. Theres a tonne of context menus out there but I want to use the new version from the toolkit.
I'd like to be able to set context menus for rows as well as cells.
The only way I've found is to manually create the menu on right click and show it, but I'd like to do it in XAML.
Note: You need to currently use this workaround in the answer to avoid binding problems.
© Stack Overflow or respective owner