Hi, can I transfer a value of one element to another? I try to move a button relative to the ScrollPosition of a ScrollViewer. What is the easiest way to do this?
Thanks
Hi, can I transfer a value of one element to another? I try to move a button relative to the ScrollPosition of a ScrollViewer. What is the easiest way to do this?
Thanks
The easiest way is to use the @fuse/triggers/scrollrange trigger.
Unfortunately we haven’t written any examples for how to use this yet, so I have to improvise here:
<Panel>
<Rectangle ux:Name="rectangle1" Width="100" Height="100">
<SolidColor Color="#f00" />
</Rectangle>
<ScrollViewer>
<ScrollRange From="0" To="100">
<Move Target="rectangle1" X="100" />
</ScrollRange>
</ScrollViewer>
</Panel>
Completely untested, but something along those lines
Works perfect!