using PDF_Master.ViewModels.EditTools.Watermark; using System.Windows.Controls; namespace PDF_Master.Views.EditTools.Watermark { /// /// Interaction logic for WatermarkDocumentContent /// public partial class WatermarkDocumentContent : UserControl { public WatermarkDocumentContent() { InitializeComponent(); } private void CurrentPageIndexBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == System.Windows.Input.Key.Enter) { var data = this.DataContext as WatermarkDocumentContentViewModel; data.GoToPageCommand?.Execute(sender); } } } }