
Buttons
Button States
Wizard allows total control over its button visibility and enabled states at both a global wizard level and at a page-specific override level.
Global settings made on the Wizard control are default settings for all contained pages.
Settings made on a WizardPage can choose to inherit the global
Wizard settings or override them with page-specific settings.
The page-specific settings take effect while that particular page is selected.
These settings are used by the Wizard command model to determine whether the associated commands should be enabled.
All of these properties may be changed at run-time programmatically to update the user interface button states.
Window Default and Cancel Buttons
Wizard makes it easy to set the default or cancel buttons of a containing Window to one of the wizard's buttons.
The Window's default button is clicked whenever the Enter key is pressed on the keyboard.
Wizard has numerous settings to control which button if any is the default button,
including the ability to dynamically choose the Next or Finish button depending on if the Finish button is visible.
The Window's cancel button is clicked whenever the Escape key is pressed on the keyboard.
Wizard has a couple settings to control which button if any is the cancel button.
Window Close On Finish/Cancel Button Clicks
Wizard can optionally attempt to set the DialogResult of the containing Window and also close the
Window when the Finish or Cancel buttons are clicked.
The Finish button sets the DialogResult to true and the Cancel button sets it to false.
|