public ChallengeDetail()
        {
            InitializeComponent();

            NavigationInTransition navigateInTransition = new NavigationInTransition();
            navigateInTransition.Backward = new SlideTransition { Mode = SlideTransitionMode.SlideRightFadeIn };
            navigateInTransition.Forward = new SlideTransition { Mode = SlideTransitionMode.SlideLeftFadeIn };

            NavigationOutTransition navigateOutTransition = new NavigationOutTransition();
            navigateOutTransition.Backward = new SlideTransition { Mode = SlideTransitionMode.SlideRightFadeOut };
            navigateOutTransition.Forward = new SlideTransition { Mode = SlideTransitionMode.SlideLeftFadeOut };
            TransitionService.SetNavigationInTransition(this, navigateInTransition);
            TransitionService.SetNavigationOutTransition(this, navigateOutTransition);

            IFacadeController ifc = FacadeController.getInstance();
            challenge = ifc.getCurrentChallenge();

            this.PageTitle.Text = challenge.Name;
            imageRec.Fill = GetColorFromHexa(challenge.ColorHex);
            Uri uri = new Uri("/BeatIt!;component/Images/icon_challenge_" + challenge.ChallengeId + ".png", UriKind.Relative);
            iconImage.Source = new BitmapImage(uri);
        }
Пример #2
0
 public void setChallenge(Challenge challenge)
 {
     this.challenge = challenge;
 }
Пример #3
0
 public void setCurrentChallenge(Challenge challenge)
 {
     this.currentChallenge = challenge;
 }