Hi,
i have a page control and i want to change the GotoDuration on fly - is this possible?
When i try to use
<Change navigationMotion.GotoDuration="0" />
or
<Set navigationMotion.GotoDuration="0" />
The preview crashes:
Outracks.Simulator.Runtime.MemberNotFound: Member not found: Outracks.Simulator.Runtime.UxProperty1..ctor at Outracks.Simulator.Reflection.Native.TryInvokeExtension.FindUnambiguousMethod(Uno.Type,Outracks.Simulator.Bytecode.TypeMemberName,object[]) at Outracks.Simulator.Reflection.Native.NativeReflection.CallStatic(Outracks.Simulator.Bytecode.TypeName,Outracks.Simulator.Bytecode.TypeMemberName,object[]) at Outracks.Simulator.Reflection.Native.NativeReflection.Instantiate(Outracks.Simulator.Bytecode.TypeName,object[]) at Outracks.Simulator.Runtime.ScopeClosure.Evaluate(Outracks.Simulator.Bytecode.Instantiate) at Outracks.Simulator.Bytecode.Expression.Match
1(Uno.Func<Outracks.Simulator.Bytecode.ReadVariable,
Here is the code:
<PageControl ux:Name="galleryPageControl" ActiveIndex="{galleryImage}" ActivePageChanged="{activePageChanged}">
<NavigationMotion GotoType="SmoothSnap" GotoDuration="0.3" Overflow="Elastic" ux:Name="navigationMotion" />
<Each Items="{images}">
<Image ux:Name="image" Url="{image_thumb}" MemoryPolicy="UnloadUnused" StretchMode="Uniform"/>
</Each>
</PageControl>
Background is i want the page control have no animation when i change the active index, but i want the animation back when the user interacts to change pages with a slide.
Any idea how i can achieve this?