Sunday, June 29, 2014

Universal App Mulitiple Page

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

#endif


and for WP


#if WINDOWS_PHONE_APP

#endif


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.


Regards,




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



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


No comments:

Post a Comment