Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement