WatermarkDocumentContent.xaml.cs 767 B

123456789101112131415161718192021222324
  1. using PDF_Master.ViewModels.EditTools.Watermark;
  2. using System.Windows.Controls;
  3. namespace PDF_Master.Views.EditTools.Watermark
  4. {
  5. /// <summary>
  6. /// Interaction logic for WatermarkDocumentContent
  7. /// </summary>
  8. public partial class WatermarkDocumentContent : UserControl
  9. {
  10. public WatermarkDocumentContent()
  11. {
  12. InitializeComponent();
  13. }
  14. private void CurrentPageIndexBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
  15. {
  16. if (e.Key == System.Windows.Input.Key.Enter)
  17. {
  18. var data = this.DataContext as WatermarkDocumentContentViewModel;
  19. data.GoToPageCommand?.Execute(sender);
  20. }
  21. }
  22. }
  23. }