Skip to main content
Version: 4.1

SlideBar

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Displays child controls vertically or horizontally in a scrollable container.

public class SlideBar : Control

Constructors

Instance member SlideBar()

Initializes a new instance of the SlideBar class.

Instance member SlideBar(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 member SlideBar(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 member BorderStyle

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

Instance member ButtonsBackColor

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

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

Instance member HorizontalScroll

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

Instance member HScroll

Boolean: Returns whether the horizontal scroll buttons are visible.

Instance member LayoutEngine

LayoutEngine: Returns the control's layout engine.

Instance member Orientation

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

Instance member ScrollStep

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

Throws:

Instance member Spacing

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

Throws:

Instance member VerticalScroll

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

Instance member VScroll

Boolean: Returns whether the vertical scroll buttons are visible.

Methods

Protected member OnControlAdded(e)

Fires the ControlAdded event.

ParameterTypeDescription
eControlEventArgsA ControlEventArgs that contains the event data.

Protected member OnOrientationChanged(e)

Fires the OrientationChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnScroll(e)

Fires the Scroll event.

ParameterTypeDescription
eScrollEventArgsA ScrollEventArgs that contains the event data.

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.

Protected member OnScrollAnimationEnd(e)

Fires the ScrollAnimationEnd event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

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.

Protected member OnScrollStepChanged(e)

Fires the ScrollStepChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnSpacingChanged(e)

Fires the SpacingChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWebEvent(e)

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Protected member OnWebUpdate(state)

Updates the client component using the state information.

ParameterTypeDescription
stateObjectDynamic state object.

Instance member ScrollBy(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 member ScrollControlIntoView(control)

Scrolls the specified child control into view.

ParameterTypeDescription
controlControlThe child control to scroll into view.

Instance member ScrollControlIntoView(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 member ScrollControlIntoView(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 member ScrollTo(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 member OrientationChanged

EventHandler Fired when the value of Orientation changes.

Instance member Scroll

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 member ScrollAnimationEnd

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 member ScrollStepChanged

EventHandler Fired when the value of ScrollStep changes.

Instance member SpacingChanged

EventHandler Fired when the value of Spacing changes.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
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.