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
var btn = (Button)sender; if(btn.Id == btn1.Id) { } else if(btn.Id == btn2.Id){ }