wxr
2020-06-09 77e7b5223dd04a6e036dc952efb38f2b770a6828
HDL_ON/UI/UI2/UserPage.cs
@@ -297,13 +297,11 @@
            homePage.LoadPage();
        }
        /// <summary>
        /// 切换到收藏界面
        /// </summary>
        void ChooseCollection()
        {
            CurAnimationEffect = 0;
            btnClassificationIcon.IsSelected = false;
            btnIntellectualizationIcon.IsSelected = false;
            btnPersonalCenterIcon.IsSelected = false;
@@ -312,6 +310,7 @@
            btnIntellectualizationText.IsSelected = false;
            btnPersonalCenterText.IsSelected = false;
            #region 移动动画
            //移动距离
            var distance = navigationSelectionView.X - collectionView.X + Application.GetRealWidth(94*3);
            int total = 10;
            int sleepTime = 300;
@@ -328,7 +327,13 @@
            distance /= total;
            new System.Threading.Thread(() => {
                int index = 0;
                while (index < total+1) {
                if(CurAnimationEffect == 0)
                {
                    return;
                }
                CurAnimationEffect = 0;
                while (index < total+1)
                {
                    if (CurAnimationEffect != 0)
                    {
                        break;
@@ -374,7 +379,6 @@
        /// </summary>
        void ChooseClassification()
        {
            CurAnimationEffect = 1;
            btnCollectionIcon.IsSelected = false;
            btnIntellectualizationIcon.IsSelected = false;
            btnPersonalCenterIcon.IsSelected = false;
@@ -394,6 +398,11 @@
            distance /= total;
            new System.Threading.Thread(() =>
            {
                if (CurAnimationEffect == 1)
                {
                    return;
                }
                CurAnimationEffect = 1;
                int index = 0;
                while (index < total+1)
                {
@@ -452,7 +461,6 @@
        /// </summary>
        void ChooseIntellectualization()
        {
            CurAnimationEffect = 2;
            btnCollectionText.IsSelected = false;
            btnClassificationText.IsSelected = false;
            btnIntellectualizationText.IsSelected = false;
@@ -471,6 +479,11 @@
            }
            distance /= total;
            new System.Threading.Thread(() => {
                if (CurAnimationEffect == 2)
                {
                    return;
                }
                CurAnimationEffect = 2;
                int index = 0;
                while (index < total+1)
                {
@@ -525,7 +538,6 @@
        /// </summary>
        void ChoosePersonalCenter()
        {
            CurAnimationEffect = 3;
            btnCollectionText.IsSelected = false;
            btnClassificationText.IsSelected = false;
            btnIntellectualizationText.IsSelected = false;
@@ -549,6 +561,11 @@
            }
            distance /= total;
            new System.Threading.Thread(() => {
                if (CurAnimationEffect == 3)
                {
                    return;
                }
                CurAnimationEffect = 3;
                int index = 0;
                while (index < total+1)
                {