How to simulate Left click in WPF from inside the event handler of right click
Actually problem is the grid cell is not getting selected by directly right lcik on it.
If user first do a left click on grid cella nd then a right click then it works well.
So from inside the right click handler i want to first simulate the left click.
How to do this.
This is the right click event handler
void OnCFLgrdrightmouseclick(object sender, MouseButtonEventArgs e)
{
// usign the same sender and e i want to generate left click event first
// and then remaining code should execute
}
Something like, but you may have to guard for infinite recursion..