I have a viewstack and I want it to switch to another view. In one function I have:
sloupec2.selectedIndex=2; zrusit.enabled=true; odeslat.enabled=true; slovicko1.enabled=true;
The "zrusit" button is inside the second (0,1,2 - third) stack, but when I execute the function, it throws an error. After I dismiss an error and execute the function again, it works. It seems to me, like the chenging of the selectedIndex is taking too long, but once its selected, it works.
What should I do?
In case I need to set up an event listener, how do I do that?
I am a beginner and my english isn't too good. Excuse me
Only the first child of the ViewStack is created immediately by default. You can set ViewStack creationPolicy to "all" to fix the issue. But it will slow down the performance .
Read more on creation policy here.
I love you!!!
Do you have any kind of a fanclub I can join?