/// <summary> /// Invoked when the page curl has been activated. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="BookPageRoutedEventArgs"/> instance containing the event data.</param> private void OnPageCurlActivated(object sender, BookPageRoutedEventArgs e) { this.AppendMessage("PageCurlActivated"); this.curlInstructions.Text = string.Format("Click and drag the corner to the {0} side to turn the page", (e.Face == BookPageFace.Back) ? "right" : "left"); this.curlInstructions.HorizontalAlignment = (e.Face == BookPageFace.Back) ? HorizontalAlignment.Left : HorizontalAlignment.Right; this.curlInstructions.TextAlignment = (e.Face == BookPageFace.Back) ? TextAlignment.Left : TextAlignment.Right; this.FadeInInstructionalText(this.curlInstructions); }
/// <summary> /// Invoked when the page has flipped. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="BookPageRoutedEventArgs"/> instance containing the event data.</param> private void OnPageFlipped(object sender, BookPageRoutedEventArgs e) { this.AppendMessage("PageFlipped"); this.FadeOutInstructionalText(this.flipInstructions); }