11

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 ?

5
  • 2
    WPF User Control Library ~= Silverlight Class Library. The larger the app is, the more likely you'll spend considerable time working around differences - but at least most things should be available when going SL->WPF, even if you need to change/debug lots. Commented Nov 10, 2011 at 12:26
  • Thank you, step by step i'm learning new stuff :) Commented Nov 10, 2011 at 12:44
  • Question: do you intend for the target WPF assembly to be deployed as partial or full trust? As a stand-alone exe, or as an XBAP? These should be taken into account in the very early stages of setting your conversion strategy. Commented Dec 14, 2011 at 17:06
  • Are you using any 3rd party controls which would run only on Silverlight Commented Feb 2, 2012 at 19:55
  • You can use Silverlight Controls in WPF, but not WPF controls in Silverlight. You just have to reference the correct DLLs. Commented Feb 2, 2012 at 20:03

2 Answers 2

8

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.

Sign up to request clarification or add additional context in comments.

Comments

1

"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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.