ScrollView {
id: scrollView
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
scrollViewProperties {
scrollMode: ScrollMode.Vertical
overScrollEffectMode: {
if(scrollViewLayout.layoutFrame.height < containerLayout.layoutFrame.height) {
OverScrollEffectMode.Default
} else {
OverScrollEffectMode.None
}
}
}
Container {
id: container
layout: StackLayout {
orientation: LayoutOrientation.TopToBottom
}
// Controls go here
attachedObjects: [
LayoutUpdateHandler {
id: containerLayout
}
]
}
attachedObjects: [
LayoutUpdateHandler {
id: scrollViewLayout
}
]
}
Comments