/// <summary>
        /// Occurs when the Document has finished loading. Reformat the display with the proper settings.
        /// </summary>
        private void Document_Loaded(object sender, EventArgs e)
        {
            DrawingControl.SuspendDrawing(pnlWorkspace);
            SetCanvasSize();
            SetCanvasPosition();

            // Regenerate the composite background image with the correct zoom scale
            //CanvasPane.BackColor = _Document.Background.Color;
            //_Document.Background.Set();

            if (_Document.Scaling.Zoom > Scaling.MIN_ZOOM)
            {
                SetScrollPercent();
            }
            DrawingControl.ResumeDrawing(pnlWorkspace);
            CanvasPane.Refresh();
        }
        /// <summary>
        /// Occurs when one of the Document's properties changed.
        /// </summary>
        private void Document_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (string.Compare(e.PropertyName, "Zoom", true) != 0)
            {
                return;
            }

            if (!_settingZoom)
            {
                DrawingControl.SuspendDrawing(pnlWorkspace);
                SetCanvasSize();
                SetCanvasPosition();

                if (_Document.Scaling.Zoom > Scaling.MIN_ZOOM)
                {
                    SetScrollPercent();
                }
                DrawingControl.ResumeDrawing(pnlWorkspace);
            }

            CanvasPane.Refresh();
        }
 /// <summary>
 /// Occurs when the cursor leaves the CanvasPane
 /// </summary>
 private void CanvasPane_MouseLeave(object sender, EventArgs e)
 {
     _mouseOverCanvasPane = false;
     CanvasPane.Refresh();
 }
 private void UI_Refresh(object sender, EventArgs e)
 {
     CanvasPane.Refresh();
 }
 /// <summary>
 /// Occurs when the cursor enters the CanvasPane
 /// </summary>
 private void CanvasPane_MouseEnter(object sender, EventArgs e)
 {
     _mouseOverCanvasPane = true;
     CanvasPane.Refresh();
 }