Q: How to draw a Segmet line using MouseMove in WPF When I triggered MouseUp the drawn lined is continuing ...and don't disrupt
mousemove event
private void Wind_MouseMove(object sender, MouseEventArgs e)
{
    if (isMouseDown)
    {
        x2 = e.GetPosition(this).X;
        y2 = e.GetPosition(this).Y;
        if (again)
        {
            grid.Children.Clear();
        }
        Line line = new Line();
        line.Stroke = Brushes.Black;
        line.X1 = x1;
        line.Y1 = y1;
        line.X2 = x2;
        line.Y2 = y2;
        grid.Children.Add(line);
        again = true;
    }
}

