Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Trusted Contributor
itcraps
Posts: 229
Registered: ‎12-26-2010
My Carrier: Telus
Accepted Solution

StackLayout Container that automatically scrolls

Hi, I have a container that uses Stackayout. I would like to add many UI Controls in the container, problem is, I would like the container to scrolls when theres too many controls added.

 

How do i do that? Thank you :smileyhappy:

www.jackdevora.com
Please use plain text.
Trusted Contributor
slashkyle
Posts: 167
Registered: ‎10-16-2012
My Carrier: Telus

Re: StackLayout Container that automatically scrolls

[ Edited ]
Page{
            Container {
                        layout: DockLayout {
                            }
                            ScrollView {
                                            
                    Container {
                        
                layout: StackLayout {
                    orientation: LayoutOrientation.TopToBottom
                }
                  
                horizontalAlignment: HorizontalAlignment.Fill
                verticalAlignment: VerticalAlignment.Top
                Container {
                    //Content goes here
                }
            }
            scrollViewProperties {
                scrollMode: ScrollMode.Vertical
                }
            }
        }
    }

 This is how I implemented it, hope it works for you.

Please use plain text.
Trusted Contributor
itcraps
Posts: 229
Registered: ‎12-26-2010
My Carrier: Telus

Re: StackLayout Container that automatically scrolls

Please use plain text.