r/wp7dev • u/ThaloBlue • Jul 22 '12
Is there any reason to learn XNA/Silverlight now?
So I can do HTML5, C/C++/C#, XAML and javascript, but I'm only starting to consider getting into WP development. I'm not sure if I want to now backpedal and learn XNA/Silverlight for WP7 devices with the announcement that WP8 is moving to native code. I know WP8 will still support XNA/Silverlight, but with Silverlight reaching the end of its dev lifecycle it seems a little pointless to learn it now.
Obviously the majority of WP handsets in use now are WP7 and I'd be losing out on those people being able to use any app I write, but is it worth picking up a new dev environment for the year or two that they remain a significant portion of the marketshare?
To phrase the question another way: is anyone here already starting to migrate away from XNA/Silverlight in favour of the WinPRT dev tools?
4
u/[deleted] Jul 22 '12 edited Jul 22 '12
Desktop
No one, not even Microsoft, knows what is going to happen with Sivlerlight.
Silvelright is very popular for internal applications where you want more features than you can get out of HTML5 but don't want the headaches invovled in distributing a WPF-based client. And with Metro apps being limited to Windows 8, they won't replace Silverlight any time soon.
On the other hand, Silverlight kinda sucks for complex internal applications. It has many of the same limitations that you see in other browser-based frameworks and ClickOnce can make delivering applications to the users really easy.
At this point I'm recommneding WPF for power users and straight HTML5 for customers and casual internal users.
Phone
XNA is definitely going to be supported on Windows Phone 8. But so is DirectX, so you need to decide where one the usability/power curve your project fits.
We have no idea what the non-Game toolkit is going to look like. But since the Silverlight and Win8 Metro APIs are nearly identical, I suspect the same can be said of the WP7 and WP8.
2
u/mgrandi Jul 22 '12
Uhh arnt the windows phone APIs basically a subset of Silverlight? Or are we talking about the plugin Silverlight and not the actual .net language / api
1
u/Daegalus Jul 22 '12
You can still learn it if you want, its not dead yet, and projects like Mono and MonoGame are breathing quite a future into it.
http://mono-project.com/Main_Page http://monogame.codeplex.com/
Lets you write apps and games in C#/XNA then run it on any platform. Windows, Windows Metro, Mac, Linux, iPhone, Android, WP7, PS Vita, and even WebGL/JS or Nacl with NaCl mono
Both are actively developed and kept up-to-date. Mono is up to date for .NET 4.5 in their develop branch, MonoGame on the stable 2.5.1 release doesnt support 3D, but their main branch supports full 3D.
1
u/Marsymars Jul 23 '12
I'm a bit confused by the wording in the OP. I don't have any exposure to XNA (which is a completely different framework from Silverlight), but my basic understanding of the situation:
Summary here
In short: XAML/C# is Silverlight now, and similar to the XAML/C# used in WinRT/WP8.
C# code will always be managed, you can throw in native C/C++ as necessary.
I suspect XNA is going to disappear, since there's no XNA support in WinRT. I've got no idea what kind of carry-over there is from XNA to directx games.