I have multiple buttons instead of doing
this.button1.Click += new System.EventHandler(this.button_Click);
this.button2.Click += new System.EventHandler(this.button_Click);
etc.
this.button10.Click += new System.EventHandler(this.button_Click);
I'd like to be able to do something like this in pseudo-code:
this.button*.Click += new System.EventHandler(this.button_Click);
In Javascript it is possible is there something like that in WPF ?
See Question&Answers more detail:os