12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using PDF_Master.CustomControl.ScanViewControl;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- namespace PDF_Master.Views.Scan
- {
- /// <summary>
- /// Redress.xaml 的交互逻辑
- /// </summary>
- public partial class Redress : UserControl
- {
- public Redress()
- {
- InitializeComponent();
- }
- public string TextBoxContext
- {
- get { return (string)GetValue(TextBoxContextProperty); }
- set
- {
- SetValue(TextBoxContextProperty, value);
- }
- }
- public CustomDraw HitChild { get; set; }
- // Using a DependencyProperty as the backing store for TextBoxContext. This enables animation, styling, binding, etc...
- public static readonly DependencyProperty TextBoxContextProperty =
- DependencyProperty.Register("TextBoxContext", typeof(string), typeof(Redress), new PropertyMetadata(""));
- private void BtnCancel_Click(object sender, RoutedEventArgs e)
- {
- Visibility = Visibility.Collapsed;
- }
- public void SelectAll()
- {
- TxtInput.SelectAll();
- TxtInput.Focus();
- }
- public event EventHandler ApplyCommandHandler;
- private void BtnApply_Click(object sender, RoutedEventArgs e)
- {
- ApplyCommandHandler.Invoke(sender, e);
- }
- }
- }
|