Sunday, 26 July 2015

VICTORY OVER PIVOT AND PANAROMA

Victory over pivot and panaroma was exciting. What victory you ask? It is a victory over the limitations of tabs and in design. We happen to have an exercises section in our app where users, a child in this case, can take a test on what they've just learnt. However, what happens when the test you are preparing has ten questions and panaroma only offers up to a certain number of tabs. Pivot also limited us in terms of design.
As you can see, this appeared to be quite a fix for us, but only for a short time as i soon discovered a way around this. For starters, no pivot or panaroma pages, just a single page whose content changes dynamically basing on a control selected, in this case, the 'next' button in the page.
 Using a counter variable that is incremented each time the next button is tapped, the Click method of the button checks the value of the counter and sets the new content in the page accordingly. I must admit, the process was quite tedious due to the repetition, the code may not look pretty,but, it works. One small step for windows phone development, but a giant leap for Tootoz class.

No comments:

Post a Comment