AppStartupGuide.MainPage.UpdateCurrentAndNext C# (CSharp) Method

UpdateCurrentAndNext() private method

private UpdateCurrentAndNext ( Panel section, RectangleGeometry current, RectangleGeometry next ) : void
section Windows.UI.Xaml.Controls.Panel
current Windows.UI.Xaml.Media.RectangleGeometry
next Windows.UI.Xaml.Media.RectangleGeometry
return void
        void UpdateCurrentAndNext(Panel section, RectangleGeometry current, RectangleGeometry next)
        {
            var distance = ScrollingHost.DistanceFromTop(section);

            current.Rect = new Rect(0, distance - ActualHeight + OVER_PAN, ActualWidth, ActualHeight);
            next.Rect = new Rect(0, distance + OVER_PAN, ActualWidth, ActualHeight);
        }