/// <summary> /// Invoked when the page curl is activating. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="CancelBookPageRoutedEventArgs"/> instance containing the event data.</param> private void OnPageCurlActivating(object sender, CancelBookPageRoutedEventArgs e) { this.AppendMessage("PageCurlActivating"); if (this.cancelPageCurlActivatingCheckBox != null) { e.Cancel = (bool)this.cancelPageCurlActivatingCheckBox.IsChecked; e.Handled = true; } }
/// <summary> /// Invoked when the page is flipping. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="CancelBookPageRoutedEventArgs"/> instance containing the event data.</param> private void OnPageFlipping(object sender, CancelBookPageRoutedEventArgs e) { this.AppendMessage("PageFlipping"); this.FadeOutInstructionalText(this.curlInstructions); if (this.cancelPageFlippingCheckBox != null) { e.Cancel = (bool)this.cancelPageFlippingCheckBox.IsChecked; e.Handled = true; } if (!e.Cancel) { this.flipInstructions.Text = string.Format("Now drag the corner to the {0} of the binding to complete the page turn", (e.Face == BookPageFace.Back) ? "right" : "left"); this.FadeInInstructionalText(this.flipInstructions); } }