Silverlight-4.0 – How to click on the left button instead of right click on Silverlight to open the context menu

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;
}

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4048 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.