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.

inside custom component

Native Development

Reply
Developer
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
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 Smiley Happy

www.jackdevora.com
Highlighted
Developer
Posts: 826
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

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.

Developer
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus

Re: StackLayout Container that automatically scrolls