StepCancelEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Allows navigation away from the current step to be canceled.
- C#
- VB.NET
public class StepCancelEventArgs : CancelEventArgs
Public Class StepCancelEventArgs
Inherits 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
StepCancelEventArgs(step, index, targetIndex)
Initializes a proposed navigation.
| Name | Type | Description |
|---|---|---|
| step | Step | Departing step, or null before initial selection. |
| index | Int32 | Departing index, or -1. |
| targetIndex | Int32 | Proposed destination index. |
Properties
Index
Int32: Gets the departing index, or -1.
Step
Step: Gets the departing step, or null.
TargetIndex
Int32: Gets the proposed destination index.