Skip to main content

TourPanel

Namespace: Wisej.Web.Ext.TourPanel

Assembly: Wisej.Web.Ext.TourPanel

Provides a tour panel template that can be used to create a guided tour of an application.

public class TourPanel : ContainerControl

Constructors

Instance memberTourPanel()

Default constructor.

Instance memberTourPanel(parent)

Initializes a new instance of the TourPanel control and assigns it to the specified parent.

NameTypeDescription
parentControlThe parent control that owns this tour panel.

Throws:

Properties

Instance memberAutoClose

Boolean: Determines whether the TourPanel will close automatically when the user clicks outside of the control. (Default: False)

Instance memberAutoPlay

Boolean: Determines whether the TourPanel will start showing the steps automatically. (Default: True)

Instance memberAutoSize

Boolean: Determines whether the TourPanel automatically adjusts its dimension when the step changes. (Default: True)

Instance memberContainer

ContainerControl: Returns the ContainerControl that this TourPanel is attached to.

Instance memberCurrentStep

TourStep: Returns or sets the current TourStep.

Instance memberDefaultAlignment

Placement: Returns or sets the default Placement of the TourPanel. (Default: BottomCenter)

Each TourStep can override the DefaultAlignment and change the placement of the TourStep.

Instance memberDefaultAutoPlayTime

Int32: Returns or sets the default number of seconds before showing the next step when the AutoPlay property is set to true. (Default: 5)

Each TourStep can override the DefaultAutoPlayTime and change the AutoPlayTime of the TourStep. Throws:

Instance memberDefaultOffset

Padding: Returns or sets the default offset from the target, in pixels.

Each TourStep can override the DefaultOffset and change the offset of the TourStep.

Instance memberDefaultShowClose

Boolean: Determines whether the TourPanel shows the CloseButton and ExitButton buttons. (Default: True)

The ExitButton is always shown on the last step.

Instance memberHighlightColor

Color: Returns or sets the color index for the highlight mask. Uses the highlightColor set in the theme when this property is Empty. (Default: Color [Empty])

Instance memberHighlightTarget

Boolean: Returns or sets a value indicating whether the current target is highlighted. (Default: True)

Instance memberIsPlaying

Boolean: Returns whether the TourPanel is currently playing the steps.

Instance memberSelectedIndex

Int32: Returns or sets the index of the current TourStep in the Steps collection. (Default: 0)

Instance memberSteps

TourStep[]: Collection of the steps to show in this TourPanel.

Methods

Instance memberBack()

Shows the previous step.

Instance memberClose()

Closes the TourPanel.

Instance memberFirst()

Shows the first step.

Instance memberNext()

Shows the next step

Instance memberOnAfterStep(e)

Fires the AfterStep event.

ParameterTypeDescription
eTourPanelEventArgsA TourPanelEventArgs that contains the event data.

Instance memberOnBeforeStep(e)

Fires the BeforeStep event.

ParameterTypeDescription
eTourPanelEventArgsA TourPanelEventArgs that contains the event data.

Instance memberPause()

Pauses auto-advancing the steps.

Instance memberPlay()

Starts auto-advancing the steps.

Instance memberShow()

Shows the TourPanel without a container.

Instance memberShow(container)

Shows the TourPanel for the specified container control.

ParameterTypeDescription
containerContainerControlThe ContainerControl that hosts the controls that are the target for this TourPanel.

Events

Instance memberAfterStep

TourPanelEventHandler Fired when the current step is replaced by a new step. This event is not cancelable.

Instance memberBeforeStep

TourPanelEventHandler Fired when the TourPanel shows a new step. This event is cancelable.

Instance memberClosed

EventHandler Fired when the TourPanel control is closed.

Instance memberEnded

EventHandler Fires when the TourPanel has finished showing the steps.

Instance memberNotFound

HandledEventHandler Fires when the TourPanel cannot find the target widget specified in the TargetName property of the CurrentStep.

If this event is not handled, the default behavior is to throw an exception.

Instance memberPaused

EventHandler Fired when the TourPanel has been paused.

Instance memberPlaying

EventHandler Fires when the TourPanel is playing the steps automatically.