Example #1
0
        private void EnterHoverMode()
        {
            if (isInHoverMode)
            {
                return;
            }

            xEllipseDot.Effect  = HoverEffect;
            currentlyHoveredDot = this;
            isInHoverMode       = true;
        }
Example #2
0
 private void OnAnyDotDragging(ConnectorDot that, DragDeltaEventArgs e)
 {
     if (xLayoutRoot.CheckIfMouseIsPhisicallyOver())
     {
         this.EnterHoverMode();
     }
     else
     {
         this.LeaveHoverMode();
     }
 }
Example #3
0
        private void LeaveHoverMode()
        {
            if (!isInHoverMode)
            {
                return;
            }

            xEllipseDot.Effect = null;
            lock (StaticLock)
            {
                if (currentlyHoveredDot == this)
                {
                    currentlyHoveredDot = null;
                }
            }
            isInHoverMode = false;
        }