Exemple #1
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);
            var mx = new UIInterpolatingMotionEffect("center.x", UIInterpolatingMotionEffectType.TiltAlongHorizontalAxis)
            {
                MinimumRelativeValue = new NSNumber(-15),
                MaximumRelativeValue = new NSNumber(15)
            };
            var my = new UIInterpolatingMotionEffect("center.y", UIInterpolatingMotionEffectType.TiltAlongVerticalAxis)
            {
                MinimumRelativeValue = new NSNumber(-15),
                MaximumRelativeValue = new NSNumber(15)
            };

            ImgVwBackground.AddMotionEffect(mx);
            ImgVwBackground.AddMotionEffect(my);

            if (!isLoaded)
            {
                NavigationItem.HidesBackButton = true;
                LoadMainItemInfo();
                if (_coverImage == null)
                {
                    DetailsCover.SetImage(new NSUrl(_item.cover_image_url), UIImage.FromBundle("placeholder_image.png"),
                                          SDWebImageOptions.RetryFailed, null);
                }
                else
                {
                    DetailsCover.Image             = _coverImage;
                    DetailsCover.Layer.BorderWidth = 1;
                    DetailsCover.Layer.BorderColor = UIColor.White.CGColor;
                }
                GetItemJson();
            }
        }
Exemple #2
0
        void LoadHiResCoverImage()
        {
            UITapGestureRecognizer tapGesture = new UITapGestureRecognizer();

            tapGesture.NumberOfTapsRequired = 1;
            tapGesture.AddTarget(this, new Selector("ShowHiResCover"));
            DetailsCover.AddGestureRecognizer(tapGesture);
        }
        void ReleaseDesignerOutlets()
        {
            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }

            if (DetailsCover != null)
            {
                DetailsCover.Dispose();
                DetailsCover = null;
            }

            if (DetailsDescription != null)
            {
                DetailsDescription.Dispose();
                DetailsDescription = null;
            }

            if (DetailsMainTitleCell != null)
            {
                DetailsMainTitleCell.Dispose();
                DetailsMainTitleCell = null;
            }

            if (DetailsNavReminderBtn != null)
            {
                DetailsNavReminderBtn.Dispose();
                DetailsNavReminderBtn = null;
            }

            if (DetailsNavTitleLbl != null)
            {
                DetailsNavTitleLbl.Dispose();
                DetailsNavTitleLbl = null;
            }

            if (DetailsOrderCell != null)
            {
                DetailsOrderCell.Dispose();
                DetailsOrderCell = null;
            }

            if (DetailsPlatform != null)
            {
                DetailsPlatform.Dispose();
                DetailsPlatform = null;
            }

            if (DetailsRating != null)
            {
                DetailsRating.Dispose();
                DetailsRating = null;
            }

            if (DetailsRatingImage != null)
            {
                DetailsRatingImage.Dispose();
                DetailsRatingImage = null;
            }

            if (DetailsRelease != null)
            {
                DetailsRelease.Dispose();
                DetailsRelease = null;
            }

            if (DetailsReminderBtn != null)
            {
                DetailsReminderBtn.Dispose();
                DetailsReminderBtn = null;
            }

            if (DetailsScreenshots != null)
            {
                DetailsScreenshots.Dispose();
                DetailsScreenshots = null;
            }

            if (DetailsShowSocialNetworkViewBtn != null)
            {
                DetailsShowSocialNetworkViewBtn.Dispose();
                DetailsShowSocialNetworkViewBtn = null;
            }

            if (DetailsSocialNetworkCloseBtn != null)
            {
                DetailsSocialNetworkCloseBtn.Dispose();
                DetailsSocialNetworkCloseBtn = null;
            }

            if (DetailsSocialNetworkView != null)
            {
                DetailsSocialNetworkView.Dispose();
                DetailsSocialNetworkView = null;
            }

            if (DetailsSpinner != null)
            {
                DetailsSpinner.Dispose();
                DetailsSpinner = null;
            }

            if (DetailsTitle != null)
            {
                DetailsTitle.Dispose();
                DetailsTitle = null;
            }

            if (DetailsTopView != null)
            {
                DetailsTopView.Dispose();
                DetailsTopView = null;
            }

            if (DetailsTrailerCell != null)
            {
                DetailsTrailerCell.Dispose();
                DetailsTrailerCell = null;
            }

            if (DetailsWebsiteCell != null)
            {
                DetailsWebsiteCell.Dispose();
                DetailsWebsiteCell = null;
            }

            if (ImgVwBackground != null)
            {
                ImgVwBackground.Dispose();
                ImgVwBackground = null;
            }

            if (LblMainGame != null)
            {
                LblMainGame.Dispose();
                LblMainGame = null;
            }

            if (LblOrder != null)
            {
                LblOrder.Dispose();
                LblOrder = null;
            }

            if (LblTrailer != null)
            {
                LblTrailer.Dispose();
                LblTrailer = null;
            }

            if (LblWebsite != null)
            {
                LblWebsite.Dispose();
                LblWebsite = null;
            }

            if (NoScreenshotLabel != null)
            {
                NoScreenshotLabel.Dispose();
                NoScreenshotLabel = null;
            }

            if (PostBtn != null)
            {
                PostBtn.Dispose();
                PostBtn = null;
            }

            if (ScreenshotBtn1 != null)
            {
                ScreenshotBtn1.Dispose();
                ScreenshotBtn1 = null;
            }

            if (ScreenshotBtn2 != null)
            {
                ScreenshotBtn2.Dispose();
                ScreenshotBtn2 = null;
            }

            if (ScreenshotBtn3 != null)
            {
                ScreenshotBtn3.Dispose();
                ScreenshotBtn3 = null;
            }

            if (ScreenshotBtn4 != null)
            {
                ScreenshotBtn4.Dispose();
                ScreenshotBtn4 = null;
            }

            if (ScreenshotBtn5 != null)
            {
                ScreenshotBtn5.Dispose();
                ScreenshotBtn5 = null;
            }

            if (SocialNetworkCell != null)
            {
                SocialNetworkCell.Dispose();
                SocialNetworkCell = null;
            }

            if (TweetBtn != null)
            {
                TweetBtn.Dispose();
                TweetBtn = null;
            }

            if (ImgVwBackgroundOverlay != null)
            {
                ImgVwBackgroundOverlay.Dispose();
                ImgVwBackgroundOverlay = null;
            }
        }