1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using PDF_Master.Helper;
- using PDF_Master.ViewModels.PropertyPanel.AnnotPanel;
- 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.PropertyPanel.AnnotPanel
- {
- /// <summary>
- /// CustomCreateDialog.xaml 的交互逻辑
- /// </summary>
- public partial class CustomCreateDialog : UserControl
- {
- public CustomCreateDialog()
- {
- InitializeComponent();
- }
- private void RadioButton_Checked(object sender, RoutedEventArgs e)
- {
- (DataContext as CustomCreateDialogViewModel).SetStampStyle(Convert.ToInt32((sender as RadioButton).Tag));
- }
- private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
- {
- (DataContext as CustomCreateDialogViewModel).StampText = (e.OriginalSource as TextBox).Text;
- (DataContext as CustomCreateDialogViewModel).UpDataStamp();
- }
- private void UserControl_Loaded(object sender, RoutedEventArgs e)
- {
- InPutTextBox.Focus();
- InPutTextBox.SelectAll();
- }
- }
- }
|