Пример #1
0
        private void EnterHoverMode()
        {
            if (isInHoverMode)
            {
                return;
            }

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

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