Exemplo n.º 1
0
        public static void UpdateRefreshPullDirection(this RefreshContainer refreshContainer, RefreshView refreshView)
        {
            var refreshPullDirection = refreshView.OnThisPlatform().GetRefreshPullDirection();

            switch (refreshPullDirection)
            {
            case Specifics.RefreshPullDirection.TopToBottom:
                refreshContainer.PullDirection = RefreshPullDirection.TopToBottom;
                break;

            case Specifics.RefreshPullDirection.BottomToTop:
                refreshContainer.PullDirection = RefreshPullDirection.BottomToTop;
                break;

            case Specifics.RefreshPullDirection.LeftToRight:
                refreshContainer.PullDirection = RefreshPullDirection.LeftToRight;
                break;

            case Specifics.RefreshPullDirection.RightToLeft:
                refreshContainer.PullDirection = RefreshPullDirection.RightToLeft;
                break;

            default:
                goto case Specifics.RefreshPullDirection.TopToBottom;
            }
        }