Table of Contents

Class WizardController<T>

Namespace
The.WPF.Wizards
Assembly
Instagile.WPF.dll
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

services IServices
createWizard Func<IWizard<T>>
titleFallback string

WizardController(IServices, Task<IWizard<T>>, string)

public WizardController(IServices services, Task<IWizard<T>> createWizard, string titleFallback = "Loading...")

Parameters

services IServices
createWizard Task<IWizard<T>>
titleFallback string

WizardController(IServices, IWizard<T>, string)

public WizardController(IServices services, IWizard<T> wizard, string titleFallback = "Loading...")

Parameters

services IServices
wizard IWizard<T>
titleFallback string

Properties

CompleteCommandName

public string CompleteCommandName { get; set; }

Property Value

string

IsReady

public Task IsReady { get; }

Property Value

Task

Methods

CalculateIfChanged<TInput, TOutput>(TInput, Func<TInput, TOutput>)

public TOutput CalculateIfChanged<TInput, TOutput>(TInput x, Func<TInput, TOutput> f)

Parameters

x TInput
f Func<TInput, TOutput>

Returns

TOutput

Type Parameters

TInput
TOutput

CreateModel(ISurface)

protected override WizardModel CreateModel(ISurface s)

Parameters

s ISurface

Returns

WizardModel

GoToPage(int)

public void GoToPage(int index)

Parameters

index int

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)

Parameters

page Control
validate Func<bool>
title string

Returns

Task