Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert Silverlight App to WPF

I need to convert a Silverlight App to WPF (to finally run it on Microsoft Surface 1.0).

I didn't write the original solution and it is quite big. I've never worked with Silverlight and I'm just a little bit familiar with WPF.

Can you offer some advice on completing this project?

Here's my current plan (high level view):

  • Recreate all Silverlight projects in WPF (User Control in Silverlight = WPF User Control Library ?)
  • References are not the same so I'll need to make some changes ... I think :)
  • Hope all controls are compatible with WPF ...

Have I missed something big? Is something wrong? Incomplete?

I'm open to all your suggestions and advice!

Any development tips ?

like image 471
Gun Avatar asked Nov 10 '11 09:11

Gun


People also ask

Does WPF use Silverlight?

1. Silverlight is simply a subset of WPF. 2. Silverlight is meant to be used online, while WPF is for local use.

What is WPF Silverlight?

WPF is a thick Windows client platform that has access to the full . Net Framework. Silverlight is a browser-based technology that has access to a subset of the . Net Framework (called the CoreCLR).


2 Answers

I recently converted a Silverlight app to WPF. You can find my notes on how I did it here:

http://robertsmyth.blogspot.com.au/2011/12/migrating-from-silverlight-to-wpf.html

Hope it helps you.

like image 186
Rob Smyth Avatar answered Oct 03 '22 22:10

Rob Smyth


"User Control in Silverlight = WPF User Control Library ?" Not exactly. which version of silverlight do you use? Most difficult issue I have faced while porting WPF to Silverlight was with converters. Silverlight 4.0 or lower doesn't support Ancestor RelativeSource Binding. But supported in Silverlight 5!

Hope this link will help you. WPF and Silverlight 2 Compatibility

like image 40
Prathibha Avatar answered Oct 03 '22 21:10

Prathibha