public WizardPage2(WizardData wizardData) { InitializeComponent(); // Bind wizard state to UI this.DataContext = wizardData; }
void wizardLauncher_WizardReturn(object sender, WizardReturnEventArgs e) { // Handle wizard return this.wizardData = e.Data as WizardData; if (this.DialogResult == null) { this.DialogResult = (e.Result == WizardResult.Finished); } }