Interface IWizardDialog
Defines methods to show a dialog containing a Wizard.
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public interface IWizardDialog
Examples
This example illustrates how to import the WizardDialog using MEF.
This example illustrates how to implement a IWizardDialogContext that can be used as the DialogContext parameter. If the ShowHelpCommand command is set to null, no help button is shown in the dialog. The CloseDialog event can be invoked at any time, to force the dialog to be closed.
This example illustrates how to implement a IWizardDialogContext<T> that can be used as the DialogContext parameter. The type parameter of the IWizardDialogContext<T> represents the return Type of the Show<TResult>(WizardDialogArgs) method.
This example illustrates how to implement a Wizard that can be used as the DialogView parameter.
<SAF:Wizard>
<SAF:WizardPage>
<TextBlock Text="Page 1" />
</SAF:WizardPage>
<SAF:WizardPage>
<TextBlock Text="Page 2" />
</SAF:WizardPage>
</SAF:Wizard>
This example illustrates how to show a WizardDialog.
var wizardDialogArgs = new WizardDialogArgs("My Wizard Dialog", myWizard, myWizardViewModel);
wizardDialog.Show(wizardDialogArgs);
This example illustrates how to show a WizardDialog that returns a result of type string. The DialogContext must implement IWizardDialogContext<T>.
var wizardDialogArgs = new WizardDialogArgs("My Wizard Dialog", myWizard, myWizardViewModel);
var result = wizardDialog.Show<String>(wizardDialogArgs);
Methods
View SourceShow(WizardDialogArgs)
Shows a dialog with the wizard defined in the wizardDialogArgs.
Declaration
void Show(WizardDialogArgs wizardDialogArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| WizardDialogArgs | wizardDialogArgs | The WizardDialogArgs. |
Remarks
See WizardDialog for remarks and code examples.
Show<TResult>(WizardDialogArgs)
Shows a dialog with the wizard defined in the wizardDialogArgs.
Declaration
TResult Show<TResult>(WizardDialogArgs wizardDialogArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| WizardDialogArgs | wizardDialogArgs | The WizardDialogArgs. |
Returns
| Type | Description |
|---|---|
| TResult | The result. |
Type Parameters
| Name | Description |
|---|---|
| TResult | the Type of the result. |
Remarks
See WizardDialog for remarks and code examples.