using PDF_Master.ViewModels.EditTools.HeaderFooter; using System.Windows.Controls; namespace PDF_Master.Views.EditTools.HeaderFooter { /// /// Interaction logic for HeaderFooterDocumentContent /// public partial class HeaderFooterDocumentContent : UserControl { public HeaderFooterDocumentContent() { 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 HeaderFooterDocumentContentViewModel; data.GoToPageCommand?.Execute(sender); } } } }