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
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
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
Developer
slashkyle
Posts: 820
Registered: ‎10-16-2012
My Device: Red Z10

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.

Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10

Re: StackLayout Container that automatically scrolls