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); } }
private void OnNoClick() { if (FeedbackOverlay.GetEnableAnimation(this)) { this.hideContent.Begin(); } else { this.ShowFeedback(); } }
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); } }