Skip to main content
Version: 3.5

SlideBar

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Displays child controls vertically or horizontally in a scrollable container.

public class SlideBar : Control

Constructors

Instance memberSlideBar()

Initializes a new instance of the SlideBar class.

Instance memberSlideBar(controls, orientation)

Initializes a new instance of the SlideBar class with the specified settings.

NameTypeDescription
controlsControl[]An array of Control objects to be added to the panel.
orientationOrientationInitial Orientation value.

Instance memberSlideBar(location, size, controls, orientation)

Initializes a new instance of the SlideBar class with the specified settings.

NameTypeDescription
locationPointThe location of the panel on its parent control.
sizeSizeThe size of the panel.
controlsControl[]An array of Control objects to be added to the panel.
orientationOrientationInitial Orientation value.

Properties

Instance memberBorderStyle

BorderStyle: Returns or sets the type of border that is drawn around the SlideBar control. (Default: None)

Instance memberButtonsBackColor

Color: Returns or sets the background Color of the scroll buttons.

The default background color is set in the theme color as "slidebarButtons".

Instance memberHorizontalScroll

HScrollProperties: Returns the properties associated with the horizontal scroll position.

Instance memberLayoutEngine

LayoutEngine: Returns the control's layout engine.

Instance memberOrientation

Orientation: Returns or sets the Orientation of the SlideBar control. (Default: Horizontal)

Instance memberScrollStep

Int32: Returns or sets the number of pixels to scroll when the scroll buttons are pressed. (Default: 15)

Throws:

Instance memberSpacing

Int32: Returns or sets the spacing between the child controls. (Default: 0)

Throws:

Instance memberVerticalScroll

VScrollProperties: Returns the properties associated with the vertical scroll position.

Methods

Instance memberScrollBy(offset, duration)

Scrolls the content by the specified offset in pixels.

ParameterTypeDescription
offsetInt32Number of pixels to scroll by.
durationInt32The time in milliseconds the scroll to should take.

Instance memberScrollControlIntoView(control)

Scrolls the specified child control into view.

ParameterTypeDescription
controlControlThe child control to scroll into view.

Instance memberScrollControlIntoView(control, alignX)

Scrolls the specified child control into view. using the specified alignX preference.

ParameterTypeDescription
controlControlThe child control to scroll into view.
alignXHorizontalAlignmentIndicates the HorizontalAlignment preference. The final location of the control depends on the scrollable range and the available space. Note that Center will not scroll the control to the center, but will instead scroll it into the closest visible location with the minimum movement.

Instance memberScrollControlIntoView(control, alignY)

Scrolls the specified child control into view. using the specified alignY preference.

ParameterTypeDescription
controlControlThe child control to scroll into view.
alignYVerticalAlignmentIndicates the VerticalAlignment preference. The final location of the control depends on the scrollable range and the available space. Note that Middle will not scroll the control to the middle, but will instead scroll it into the closest visible location with the minimum movement.

Instance memberScrollTo(position, duration)

Scrolls the content to the specified position in pixels.

ParameterTypeDescription
positionInt32The position in pixels to scroll to.
durationInt32The time in milliseconds the scroll to should take.

Events

Instance memberOrientationChanged

EventHandler Fired when the value of Orientation changes.

Instance memberScroll

ScrollEventHandler Fired when the SlideBar widget scrolls its content.

This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

Instance memberScrollAnimationEnd

EventHandler Fired when the control has completed the scrolling animation.

This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

Instance memberScrollStepChanged

EventHandler Fired when the value of ScrollStep changes.

Instance memberSpacingChanged

EventHandler Fired when the value of Spacing changes.

Implements

NameDescription
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.