|
A couple years ago I wrote a game in WPF and Silverlight (in parellel). The WPF version works fine, but it used one feature of WPF never implemented in Silverlight.
However, now that Silverlight is dead, I'd like to move it to some platform where I can finally put it on the web.
So, what platform out is will best let be leverage the C#/XAML code I have?
Truth,
James
|
|
|
|
|
UWP
The best way to make your dreams come true is to wake up.
Paul Valery
|
|
|
|
|
OP: A couple years ago I wrote a game in WPF and Silverlight (in parellel). The WPF version works fine, but it used one feature of WPF never implemented in Silverlight
Stephen Gonzalez wrote: UWP
...and a couple of years later you will be asking the question again.
ms is trying to force the web onto it's [buggy] platform, even going so far as to ramp up their FUD about anything that's not w10/edge/uwp/windows store.
Trying to force pc's onto a phone platform when their own phone failed in the market,
trying to force everything through their store, so they can monetise from YOUR work (to pay for w10),
and once again tellin us the next best thing is just around the corner
Their latest act of kindness was a patch for older unsupported systems against the ransomware trojans, or was it really because they had just done such a piss poor job even they couldn't leave it unfixed?
uwp will improve cosmetically, behind the scenes though it'll still be a cpu/memory hog feature poor hack (and because have to use their store itself in effect a ransomware on your apps and your machine) that offers no advantage over lighter better current well supported platforms.
I would caution against uwp because:
1. it's still not finished - missing features - but you also expect some current features to go away,
2. it's buggy as hell - even common apps like twitter fail regularly on anything beyond light usage,
3. ms will one day demand your first born plus a pound of flesh as payment
Sin tack
the any key okay
|
|
|
|
|
Lopatir wrote: it'll still be a cpu/memory hog feature poor hack
Don't hold back. Tell us how you really feel!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
James Curran wrote: now that Silverlight is dead, I'd like to move it to some platform where I can finally put it on the web.
As someone who used to do WPF and Silverlight, your best bet is just moving to native web technologies and abandoning your investment in XAML. XAML has a future on the desktop, but not on the web.
And for that, I'd recommend KnockoutJS[^]. It's a small framework that adds data binding to your HTML. While it's not as popular as React, Angular, or Aurelia, Knockout has a smaller scope: data binding and HTML components. This makes it much, much simpler to learn than the big JS frameworks.
I gave a talk[^] about moving from Silverlight to KnockoutJS; I found the conversion was pleasant it turned out pretty good for my app.
While you won't be able to preserve your XAML, going with KnockoutJS + TypeScript is actually a great replacement for XAML + C# Silverlight. In many ways, it's actually better.
I'm no longer doing KnockoutJS these days -- I tend to use full frameworks like Angular or React -- but it's still a good option for porting XAML-with-bindings to the web.
modified 19-May-17 12:06pm.
|
|
|
|
|
About four years ago I moved my Silverlight web site to HTML5 and Javascript and never looked back.
Brent
|
|
|
|
|
HTML5 and CSS3
___ ___ ___
|__ |_| |\ | | |_| \ /
__| | | | \| |__| | | /
|
|
|
|
|
Hi!
You could check cshtml5.
One of its goals is to provide a somewhat easy migration from Silverlight.
|
|
|
|
|
With Silverlight's demise, I've settled on Unity 3D for cross platform games. It's a very different paradigm to Silverlight, but certainly for games it's more powerful. If you're intending on making more (i.e. new games) I'd definitely go with something like that. The HTML export is mind blowing. It's free, and there's a tonne of stuff online to get you up to speed.
If on the other hand you just want to port your old game with as little effort as possible then UWP is the obvious choice, as it's still XAML-driven. Yes, you might have to rewrite it again in a few years, but it's probably not that much effort each time.
|
|
|
|
|
Use Kendo/UI from Telerik / Progress.
CSS3 + HTML5 components. You can even build super powerful Spreadsheets on the web using just a few lines of code.
visit demos.telerik.com/kendo-ui : [^]kendo-ui/">HTML5 and JavaScript widgets integrated with AngularJS | Kendo UI® Demos[^]
There is a community version and it is free!
Enjoy!
|
|
|
|
|
|
Do numbers that aren't divisible by two seem odd to you? Five is a prime example of that.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Get real!
In this present crisis, government is not the solution to our problem; government is the problem. ~ Ronald Reagan
|
|
|
|
|
Only 0 cannot be divided by two (cats).
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
does that include tea for two?
Sin tack
the any key okay
|
|
|
|
|
Only if there is 24T ...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: Five is a prime example of that.
You're too good for a three sum?
|
|
|
|
|
Nine! Zey do not.
... such stuff as dreams are made on
|
|
|
|
|
Let me float this idea, as it's quite rational:
When it comes down to it, 2 is the oddest prime number of all.
Although, with 1 exception, it's products aren't that odd at all.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
All such numbers are both odd and interesting.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Lewis Carroll: "If I tell you 3 times, it's true."
Therefore 3 is the only true prime.
Get me coffee and no one gets hurt!
|
|
|
|
|
No it isn't.
No it isn't.
No it isn't.
There - I win!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Even two seems like a prime example of not being odd.
|
|
|
|
|
Well, to tell the truth, I never even thought of it that way.
|
|
|
|
|
But after some considerable thought about odd numbers, reading between the lines, everything comes up even.
|
|
|
|