コード例 #1
0
        private void FeedbackOverlay_Loaded(object sender, RoutedEventArgs e)
        {
            this.AttachBackKeyPressed();

            if (FeedbackOverlay.GetEnableAnimation(this))
            {
                this.LayoutRoot.Opacity    = 0;
                this.xProjection.RotationX = 90;
            }

            if (FeedbackHelper.Default.State == FeedbackState.FirstReview)
            {
                this.SetVisibility(true);
                this.SetupFirstMessage();

                if (FeedbackOverlay.GetEnableAnimation(this))
                {
                    this.showContent.Begin();
                }
            }
            else if (FeedbackHelper.Default.State == FeedbackState.SecondReview)
            {
                this.SetVisibility(true);
                this.SetupSecondMessage();

                if (FeedbackOverlay.GetEnableAnimation(this))
                {
                    this.showContent.Begin();
                }
            }
            else
            {
                this.SetVisibility(false);
            }
        }
コード例 #2
0
 private void OnNoClick()
 {
     if (FeedbackOverlay.GetEnableAnimation(this))
     {
         this.hideContent.Begin();
     }
     else
     {
         this.ShowFeedback();
     }
 }
コード例 #3
0
        private void ShowFeedback()
        {
            if (FeedbackHelper.Default.State == FeedbackState.FirstReview)
            {
                this.SetupFeedbackMessage();
                FeedbackHelper.Default.State = FeedbackState.Feedback;

                if (FeedbackOverlay.GetEnableAnimation(this))
                {
                    this.showContent.Begin();
                }
            }
            else
            {
                this.SetVisibility(false);
            }
        }