I got the event sent from a button
private void myEvent(object sender, RoutedEventArgs e)
send is a button, is it possible to get the button handler to access the parameter(such as tag) of the button
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’d need to cast the sender parameter to it’s native type in order for it to be treated as that type and therefore be able to access those properties
Something like this should be sufficient
var button = (Button)senderYou can then access the Button instance referenced by sender as a Button object