How to open the context menu when left-clicking instead of right-clicking in silverlight
try Try this:
// On click
private void button1_Click(object sender, RoutedEventArgs e)
{
ContextMenuService.GetContextMenu (button1).IsOpen = true;
}
// O n right-click
private void button1_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
e.Handled = true;
}
How to open the context menu when left-clicking instead of right-clicking in silverlight
Try this:
// On click
private void button1_Click(object sender, RoutedEventArgs e)
{
Con textMenuService.GetContextMenu(button1).IsOpen = true;
}
// On right-click
private void button1_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
{< br /> e.Handled = true;
}