One Common event for all controls in Silverlight
- by Veejay
I have a couple of textblock controls and all of them are calling a single event. But i have to wire all of them invidividually using
TextBlock1.MouseMove += new MouseEventHandler(TextBlock_MouseMove); TextBlock2.MouseMove += new MouseEventHandler(TextBlock_MouseMove);
TextBlock3.MouseMove += new MouseEventHandler(TextBlock_MouseMove);
Is there a way that I can apply the mouse move to all TextBlock without wiring them one by one