public ScrollAlignment(double left, double right, ScrollAlignment previous) { this.Left = left; this.Right = right; this.Master = Math.Max(right - previous.Right, left - previous.Left) + previous.Master; }