I have 20 buttons in my Xamarin Forms app . All of the buttons share the same click event method. What I want to do is use switch statement to check the button name but I am
Maybe this can help you
if(sender is Button){ Button button = (Button)sender; if(button.Equals(myButton1)){ // You are in myButton1 }else if(button.Equals(myButton2)){ } }