Astraport
Astraport

Reputation: 1257

Scrolling Spark List without Scroller bar

How to scroll Spark list with a disabled scroller bar? I created two buttons to scroll up and down, but it is unclear what methods can be used to scroll the list.

Upvotes: 0

Views: 554

Answers (1)

JeffryHouser
JeffryHouser

Reputation: 39408

You shouldn't try to disable the scroll bar. You should create a custom skin for the scroll bar that uses your custom buttons and places them appropriately based on the design you want.

More info on skinning a Scroller

All that said, you can scroll a list by setting the horizontalScrollPosition or verticalScrollPosition on it's dataGroup. Conceptually something like this:

myList.dataGroup.horizontalScrollPosition = newPosition;

Upvotes: 1

Related Questions