title: How to write a common Event Handler for a UIElement of same type?
body: <p>In a WPF application, suppose there are 'n'-number of pictures of type image and if on clicking any picture (i.e. of type image), its visibility should collapse. Now a normal way to do this would be to to write the code to collapse for every 'Click' event for every picture. <br/>
  Is there an alternative way so that the application can understand that whenever any UIelement(picture) of type image is clicked then that particular element(picture) should collapse? <br/>
  I want to reduce the code, how can I achieve this?</p>