private void Window4_MouseDown(object sender, MouseClickPositionEventArgs e) { if (e.Button == MouseButton.Left) { this._DoDraw = true; this._StartPoint = e.Point; } }
private void Window4_MouseUp(object sender, MouseClickPositionEventArgs e) { if (e.Button == MouseButton.Left) { this._EndPoint = e.Point; this._DoDraw = false; } }