1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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.Shapes;
- namespace Compdfkit_Tools.DigitalSignature.AddCertificationControl
- {
- /// <summary>
- /// AddCertificationDialog.xaml 的交互逻辑
- /// </summary>
- public partial class AddCertificationDialog : Window
- {
- private AddCertificationControl addCertificationControl = null;
- private AddCustomCertificationControl addCustomCertificationControl = null;
- public AddCertificationDialog()
- {
- InitializeComponent();
- addCertificationControl = new AddCertificationControl();
- BodyBd.Child = addCertificationControl;
- }
- private void Window_Loaded(object sender, RoutedEventArgs e)
- {
- addCertificationControl.ContinueEvent += AddCertificationControl_ContinueEvent;
- }
- private void Window_Unloaded(object sender, RoutedEventArgs e)
- {
- addCertificationControl.ContinueEvent -= AddCertificationControl_ContinueEvent;
- }
- private void AddCertificationControl_ContinueEvent(object sender, EventArgs e)
- {
- addCustomCertificationControl = new AddCustomCertificationControl();
- BodyBd.Child = addCustomCertificationControl;
- this.Height = addCustomCertificationControl.Height + 35;
- this.Width = addCustomCertificationControl.Width + 20;
- }
- }
- }
|