title: Silverlight, custom object for shapes
body: <p>I am studding Silverlight. I have an application where I create Polygons in <code>UserControl_Loaded</code> method. During creation stage I add MouseLeftButtonUp event handler like this:</p>
  
  <pre><code>polygon.MouseLeftButtonUp += MouseButtonEventHandler_MouseLeftButtonUp;
  </code></pre>
  
  <p>All polygons have the same handler.</p>
  
  <p>My goal is to use a custom object when I click on a polygon.</p>
  
  <p>For instance, I have two polygons; both of them have <code>int MyCustomInt32</code> property. The property is set during creation stage. For the first polygon it is set to 10, for the second one to 20. When the event fires I would like to retrieve and set MyCustomInt32 value. Of course, the value should be different, it depends on which polygon I click.</p>
  
  <p>Is it possible to do in Silverlight?</p>
  
  <p>Thank you.</p>