I have to add an unknown number of buttons to a form in WPF (It's actually a toolbox whose element are loaded dynamically). I'm looking for a way to make one event handler for all of these instances. Is this possible? And they're not exactly just buttons, It's a class that inherits the Button class and has some other member variables. Will I be able to access these variables in such an event handler for each instance. If it helps or is somehow related I have to say that I don't know what Delegates are in C#.
Many Thanks