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 { /// /// AddCertificationDialog.xaml 的交互逻辑 /// 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; } } }