What I am trying to achieve is drawing a polygon programmatically based on mouse down events. Each mouse down event adds the current mouse point to the point collection of the polygon.
I also handle the mouse move events to add the current move point to the collection and remove the previous point.
Now I am able to achieve a polygon which is updated in real time.
What I want to do is to change the color of the line which joins the current move point and the first point (to complete the polygon).
Any help would be appreciated.