ScrollViewSwipe Sample initial Position

Hey there,

i have implemented the ScrollViewSwipe sample ( https://github.com/fusetools/fuse-samples/blob/master/Samples/Controls/ScrollViewSwipe/MainView.ux ) and i am looking for a way to show the headerPanel when the view is loaded. Right now the headerPanel gets visible after first Swipe/Scroll but i need it initial visible.

the expression Y=“max({ReadProperty swipeAnim.Progress}, {ReadProperty scrollAnim.Progress})-1” resturns -1 at the beginning becuase swipeAnim.Progress and swipeAnim.Progress are 0 when loaded which is correct and -1 returns then -1, but i need a 0 at the beginning.

any ideas?

Thank’s
Tom

Just in case someone is looking for the same, i figured out a solution:

 <Translation Y="{max(max({ReadProperty swipeAnim.Progress}, {ReadProperty scrollAnim.Progress}), {ReadProperty scrollView.ScrollPosition} == 0 ? 1 : 0) -1}" RelativeTo="Size" ux:Name="topY"/>

Not sure if there is a better way to do that :slight_smile:

Best Tom