Silverlight xaml pages, whats the best way to use pages

Posted on 2010-01-05
Last Modified: 2013-11-12
Im very new to Silverlight and i have created a small questionnaire that simply loads a page up with a question then once answered the user clicks next and it asks another question and so on and so on, i have used 5 xaml user control pages for this and works fine however i find adding pages time consuming and im concerened i may end up with loads of pages, whats the best method of practice when using xaml pages, is there a way of maybe using just one page that loads up the first question with buttons then when the user clicks next instead of it loading another page it uses the same page but show different question and associated buttons? I have attached a screenshot that gives an idea of how many pages i currently have and i think i may need another 4 more pages!! You may think why dont i put all the questions on one page well i could but i do not want to clutter the page and want it to be used with a touchscreen. I any ideas would be helpful
Question by:wilko100
    LVL 25

    Accepted Solution

    I think you should have a Master page Kind, with buttons below, in one portion you should load your question one by one.

    You should have a collection which will load all the questions details from which you assign one Question by another to a source which has "OneWay" or "TwoWay" binding to the Question Portion in the above page. So when when just change the source the UI is reflected automatically.

    If you have different kind of question(Fill In, Multiple choices etc) in each page, the question portion should be intelligent enough to render controls dynamically based of question type

    Hope this helps.

    Author Comment

    Thanks for the reply. Thats what i thought but my lack of experience i was not sure if there was this method. Would you know of any good examples of using a 'master' page?

    Author Closing Comment

    Thanks for the reply. You confirmed this was possible by using a master page. I have found some good examples of this

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
    With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now