Skip to content

Instantly share code, notes, and snippets.

@yuratomo
Created June 28, 2012 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuratomo/3010620 to your computer and use it in GitHub Desktop.
Save yuratomo/3010620 to your computer and use it in GitHub Desktop.
C#でContextMenuService
ContextMenu cm = new ContextMenu();
cm.Items.Add(new MenuItem()
{
Header = "編集",
Command = viewmodel.EditCommand,
CommandParameter = ListItem_ViewModel.EDIT_STRING
});
cm.Items.Add(new Separator());
ContextMenuService.SetContextMenu(datagridrow, cm);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment