Hi Rajesh ,
See my post http://social.msdn.microsoft.com/Forums/en-US/silverlightgen/thread/dea7ad96-722f-4f0c-9ac0-a03fa9455906#1fd690ac-196f-4f3c-84f1-64185085abfa
Lets say you have a List<Point> mypoints.
In that , just change the c_MouseMove method to store the data points in the list.
void c_MouseMove(object sender, MouseEventArgs e)
{
endPoint = e.GetPosition(LayoutRoot);
mypoints.add(endPoint);
p = new Path();
LineGeometry pg = new LineGeometry();
pg.StartPoint = startPoint;
pg.EndPoint = endPoint;
p.Stroke = new SolidColorBrush(Colors.Green);
p.StrokeThickness = 2;
p.Data = pg;
c.Children.Add(p);
startPoint = endPoint;
}
Hope this Helps
{ or atleast gives you the general idea to solve it }