Answered by:
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)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Thursday, April 11, 2013 5:23 PM
- Marked as answer by abiruban Monday, April 15, 2013 12:14 PM
Thursday, April 11, 2013 5:23 PMModerator
All replies
-
You cannot.
You can create libraries to share code but not a single app.
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Thursday, April 11, 2013 1:34 PM
Thursday, April 11, 2013 1:34 PMModerator -
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)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Thursday, April 11, 2013 5:23 PM
- Marked as answer by abiruban Monday, April 15, 2013 12:14 PM
Thursday, April 11, 2013 5:23 PMModerator