locked
How can I develop a app for desktop and mobile in a single application.

    Question

  • I have a simple window 8 app. It is working in my local desktop.

    Perhaps in this week I will publish my app and I have a simple doubt.

    Will my app works on windows 8 phones? If an answer is NO how can I develop a app for desktop and mobile app in a single application.

    Thanks,

    Abiruban


    • Edited by abiruban Thursday, April 11, 2013 10:56 AM
    Thursday, April 11, 2013 10:55 AM

Answers

  • Hi Abiruban,

    Yes.  You can use C# and XAML to develop Windows Phone 8, Windows Store apps and Desktop apps.

    I would encapsulate all of your logic in C# classes that can be used across all of those platforms and that way the only thing you will need to do is copy and reuse your classes with the XAML interfaces on those platforms.

    -Jeff


    Jeff Sanders (MSFT)

    Thursday, April 11, 2013 5:23 PM
    Moderator

All replies

  • You cannot.

    You can create libraries to share code but not a single app.


    Jeff Sanders (MSFT)

    Thursday, April 11, 2013 1:34 PM
    Moderator
  • Thanks for your reply

    I will design my app using c# with xaml . Is it possible 

    Thanks,

    Abiruban 

    Thursday, April 11, 2013 5:08 PM
  • Hi Abiruban,

    Yes.  You can use C# and XAML to develop Windows Phone 8, Windows Store apps and Desktop apps.

    I would encapsulate all of your logic in C# classes that can be used across all of those platforms and that way the only thing you will need to do is copy and reuse your classes with the XAML interfaces on those platforms.

    -Jeff


    Jeff Sanders (MSFT)

    Thursday, April 11, 2013 5:23 PM
    Moderator