void okButton_Click(object sender, RoutedEventArgs e) { // Go to next Wizard - as determined by the navigation hub WizardNavigationDirection direction = ((bool)this.forwardsRadioButton.IsChecked ? WizardNavigationDirection.Forwards : WizardNavigationDirection.Reverse); OnReturn(new ReturnEventArgs <WizardContext>(new WizardContext(WizardResult.Finished, direction))); }
/// <summary> /// Initializes a new instance of the <see cref="WizardNavigationEventArgs" /> class. /// </summary> /// <param name="direction">The direction.</param> public WizardNavigationEventArgs(WizardNavigationDirection direction) { this.direction = direction; }