private void EditorControl_MouseMove(object sender, MouseEventArgs e)
        {
            Point mousePosition = e.GetPosition(this);

            StatusBarHelper.ShowCoordinates((int)mousePosition.X + ", " + (int)mousePosition.Y);
            if (isDragging)
            {
                if (Math.Abs(lastMouseLocation.X - mousePosition.X) > 2 /*SystemParameters.MinimumHorizontalDragDistance*/ ||
                    Math.Abs(lastMouseLocation.Y - mousePosition.Y) > 2 /*SystemParameters.MinimumVerticalDragDistance*/)
                {
                    equationRoot.HandleMouseDrag(mousePosition);
                    lastMouseLocation = mousePosition;
                    InvalidateVisual();
                }
            }
        }
 private void EditorControl_MouseLeave(object sender, MouseEventArgs e)
 {
     StatusBarHelper.ShowCoordinates("");
 }