private void EnterHoverMode() { if (isInHoverMode) { return; } xEllipseDot.Effect = HoverEffect; currentlyHoveredDot = this; isInHoverMode = true; }
private void OnAnyDotDragging(ConnectorDot that, DragDeltaEventArgs e) { if (xLayoutRoot.CheckIfMouseIsPhisicallyOver()) { this.EnterHoverMode(); } else { this.LeaveHoverMode(); } }
private void LeaveHoverMode() { if (!isInHoverMode) { return; } xEllipseDot.Effect = null; lock (StaticLock) { if (currentlyHoveredDot == this) { currentlyHoveredDot = null; } } isInHoverMode = false; }