コード例 #1
0
ファイル: ProfilePage.cs プロジェクト: Makzz90/VKClient_re
        private void UpdateHeaderOpacityWithScrollPosition(double scrollPosition)
        {
            bool num1 = this._viewModel.Id > 0L;
            int  num2 = num1 ? 200 : 32;
            int  num3 = num1 ? 224 : 64;
            int  num4 = num1 ? 96 : 0;
            int  num5 = num1 ? 200 : 32;

            this.UpdateHeaderOpacity(ProfilePage.CalculateOpacity(scrollPosition, (double)num2, (double)num3));
            double opacity = ProfilePage.CalculateOpacity(scrollPosition, (double)num4, (double)num5);

            if (num1)
            {
                this.ucUserProfileInfoHeader.SetOverlayOpacity(opacity);
            }
            else
            {
                this.ucGroupProfileInfoHeader.SetOverlayOpacity(opacity);
            }
        }
コード例 #2
0
ファイル: ProfilePage.cs プロジェクト: Makzz90/VKClient_re
 private void UpdateHeaderOpacityWithScrollPosition(double scrollPosition)
 {
     this.UpdateHeaderOpacity(ProfilePage.CalculateOpacity(scrollPosition, 200.0, 224.0));
     this.ucProfileInfoHeader.SetOverlayOpacity(ProfilePage.CalculateOpacity(scrollPosition, 96.0, 200.0));
 }