Skip to content

WizardStepItem

Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

One step of a WizardSteps row: number, name, current / done, and whether it can be opened (every step before it complete). The owner calls WizardStepItem.Refresh after the step or a problem changed.

public sealed class WizardStepItem : ObservableObject

Inherits ObservableObject

WizardStepItem(int index, string name, Func<int> current, Func<int, bool> canOpen, Action<int> open)

One step of a WizardSteps row: number, name, current / done, and whether it can be opened (every step before it complete). The owner calls WizardStepItem.Refresh after the step or a problem changed.

bool CanOpen { get; }

A click opens it: every step before it is complete.

int Index { get; }

Position, 0-based.

bool IsCurrent { get; }

The step shown now.

bool IsDone { get; }

A step before the current one.

bool IsFirst { get; }

The first step (no line before it).

bool IsLater { get; }

A step after the current one.

string Name { get; }

The step name (“When”).

string Number { get; }

The number in the dot (“2”).

IRelayCommand OpenCommand { get; }

Gets an IRelayCommand instance wrapping WizardStepItem.Open.

void Refresh()

Updates the state after the current step or a problem changed.