Skip to main content
Version: 4.2

StepCancelEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Allows navigation away from the current step to be canceled.

public class StepCancelEventArgs : CancelEventArgs

Derives from or implements CancelEventArgs.

Use Step, Index, TargetIndex to access the event data.

Example:

stepper.Validating += (sender, e) =>
{
if (e.TargetIndex > e.Index && e.Step?.State == StepState.Error)
e.Cancel = true;
};

Constructors​

Instance member StepCancelEventArgs(step, index, targetIndex)​

Initializes a proposed navigation.

NameTypeDescription
stepStepDeparting step, or null before initial selection.
indexInt32Departing index, or -1.
targetIndexInt32Proposed destination index.

Properties​

Instance member Index​

Int32: Gets the departing index, or -1.

Instance member Step​

Step: Gets the departing step, or null.

Instance member TargetIndex​

Int32: Gets the proposed destination index.