Hi all,
I am trying to do an action by clicking a button.
So if I press the button 1, it will do action1 (showing an image), and if I press it again, it should go do action 2 (which is reverting action one, so disable the image), press again for the tird time, it will go back and do action1, and so on.. I tried to use e.ClickCount , but ClickCount is not on WPF. How should I implement it in the block?
private void button1_Click(object sender, RoutedEventArgs e)
{
/*I already manage to do an action (call an image) here by clicking the button once, but after the second , third, and so on, nothing happened. I need to revert an action if I press the same button again, and call the action1 again if it pressed again.*/
}
Thank you for the guidance