SlideBar
Wisej.Web.SlideBar
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Displays child controls vertically or horizontally in a scrollable container.
Constructors
SlideBar()
Initializes a new instance of the SlideBar class.
Properties
BorderStyle
BorderStyle: Returns or sets the type of border that is drawn around the SlideBar control.
ButtonsBackColor
Color: Returns or sets the background Color of the scroll buttons.
The default background color is set in the theme color as "slidebarButtons".
HorizontalScroll
HScrollProperties: Returns the properties associated with the horizontal scroll position.
LayoutEngine
LayoutEngine: Returns the control's layout engine.
Orientation
Orientation: Returns or sets the Orientation of the SlideBar control.
ScrollStep
Int32: Returns or sets the number of pixels to scroll when the scroll buttons are pressed.
Throws:
ArgumentOutOfRangeException The value is less than 1 or greater than 32000.
Spacing
Int32: Returns or sets the spacing between the child controls.
Throws:
ArgumentOutOfRangeException The value is less than 0 or greater than 32000.
VerticalScroll
VScrollProperties: Returns the properties associated with the vertical scroll position.
Methods
ScrollBy(offset, duration)
Scrolls the content by the specified offset in pixels.
Parameter | Type | Description |
---|---|---|
offset | Number of pixels to scroll by. | |
duration | The time in milliseconds the scroll to should take. |
ScrollControlIntoView(control)
Scrolls the specified child control into view.
Parameter | Type | Description |
---|---|---|
control | The child control to scroll into view. |
ScrollControlIntoView(control, alignX)
Scrolls the specified child control into view. using the specified alignX preference.
Parameter | Type | Description |
---|---|---|
control | The child control to scroll into view. | |
alignX | Indicates 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. |
ScrollControlIntoView(control, alignY)
Scrolls the specified child control into view. using the specified alignY preference.
Parameter | Type | Description |
---|---|---|
control | The child control to scroll into view. | |
alignY | Indicates 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. |
ScrollTo(position, duration)
Scrolls the content to the specified position in pixels.
Parameter | Type | Description |
---|---|---|
position | The position in pixels to scroll to. | |
duration | The time in milliseconds the scroll to should take. |
Events
OrientationChanged
EventHandler Fired when the value of Orientation changes.
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.
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.
ScrollStepChanged
EventHandler Fired when the value of ScrollStep changes.
SpacingChanged
EventHandler Fired when the value of Spacing changes.
Implements
Name | Description |
---|---|
Bindable components implement this interface. | |
All wisej components implement this interface. | |
All wisej controls derived from the Control class must implement this interface. | |
Allows an object to serialize itself. |
Last updated