Universal App Mulitiple Page RRS feed

  • Question

  • hi i a creating a Universal App i am using MVVM Libraries only . created Model and ViewModel , on Shared i want to add page for windows phone and windows store app . where i need to create page  , Shared section each app separately Help me  
    Sunday, June 29, 2014 5:11 AM


  • Hi,
    You can add a page in the shared and this page will work on both platform, but you need to consider the design issues like the title and size of the controls on every platform (Also some controls are working in W8 and aren't in WP and opposite) also some libraries are working on a platform and not working on the other.

    So here some solution

    1) On the controls that its size should vary from one platform to another you should add a user control for it in every project.

    2) In the code behind if a library is working in Windows 8 you can write it within block #if WINDOWS_APPS

    and for WP


    And my recommendation is if the page will change a lot from one platform to another in UI and code, you should add a page form every platform,

    if not the user control and #if block will save a lot of time.


    Ibraheem Osama Mohamed | My Blog | @IbraheemOM | My Website

    (If my reply answers your question, please propose it as an answer)

    • Marked as answer by luna_luna Wednesday, July 2, 2014 3:13 AM
    Sunday, June 29, 2014 10:07 AM