private void ComputeIntersection() { currentIntersection = allButtons.Where(b => IntersectsMoreThanHalf(b.Frame)).FirstOrDefault(); }
public void DragDelta(double horizontalChange, double verticalChange) { currentIntersection = null; currentRectangle.X += horizontalChange; currentRectangle.Y += verticalChange; }