123456789101112131415161718192021222324 |
- using PDF_Master.ViewModels.EditTools.HeaderFooter;
- using System.Windows.Controls;
- namespace PDF_Master.Views.EditTools.HeaderFooter
- {
- /// <summary>
- /// Interaction logic for HeaderFooterDocumentContent
- /// </summary>
- 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);
- }
- }
- }
- }
|