Class WizardController<T>
public sealed class WizardController<T> : ModalControllerBase<WizardModel, T?>, IModalController<T?>, IWizardHost
Type Parameters
T
- Inheritance
-
WizardController<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
WizardController(IServices, Func<IWizard<T>>, string)
public WizardController(IServices services, Func<IWizard<T>> createWizard, string titleFallback = "Loading...")
Parameters
WizardController(IServices, Task<IWizard<T>>, string)
public WizardController(IServices services, Task<IWizard<T>> createWizard, string titleFallback = "Loading...")
Parameters
WizardController(IServices, IWizard<T>, string)
public WizardController(IServices services, IWizard<T> wizard, string titleFallback = "Loading...")
Parameters
Properties
CompleteCommandName
public string CompleteCommandName { get; set; }
Property Value
IsReady
public Task IsReady { get; }
Property Value
Methods
CalculateIfChanged<TInput, TOutput>(TInput, Func<TInput, TOutput>)
public TOutput CalculateIfChanged<TInput, TOutput>(TInput x, Func<TInput, TOutput> f)
Parameters
xTInputfFunc<TInput, TOutput>
Returns
- TOutput
Type Parameters
TInputTOutput
CreateModel(ISurface)
protected override WizardModel CreateModel(ISurface s)
Parameters
sISurface
Returns
GoToPage(int)
public void GoToPage(int index)
Parameters
indexint
NextPage()
public void NextPage()
NotifyStepsChanged()
public void NotifyStepsChanged()
NotifyValidityChanged()
public void NotifyValidityChanged()
OnCompleted()
This handler is invoked after the modal completes which could be due to it completing with a result or due to it being cancelled. This method should only perform cleanup of event handlers and similar.
protected override void OnCompleted()
Remarks
See OnConfirmAsync() and OnConfirmAsync() for an appropriate place to put business logic that should run immediately before confirming this modal.
OnModelCreated()
protected override void OnModelCreated()
PreviousPage()
public void PreviousPage()
ShowPage(Control, Func<bool>?, string?)
public Task ShowPage(Control page, Func<bool>? validate, string? title)