James Newton-King
James Newton-King

Reputation: 49072

Silverlight and Windows Phone 7 dll compatibility

Is a library built for Silverlight compatible with a Windows Phone 7 application?

Upvotes: 3

Views: 441

Answers (3)

Mick N
Mick N

Reputation: 14882

Provided you don't call API's in the dll that aren't supported by the platform, you can do this.

Upvotes: 0

Jesse Liberty
Jesse Liberty

Reputation: 671

If you are asking whether the compiled library is compatible, the answer is no. You cannot build a .xap file or a .dll for Silverlight web and deploy it to the phone.

On the other hand, if you are asking whether you can rebuild it for the phone, the answer is very close to yes, especially if the program is pretty simple.

I demonstrate that idea here, but it is important to point out that they are not the same platforms; and once you get past a pretty simple application the differences become a bit more noticeable.

Thanks -jesse

Upvotes: 4

Ola Karlsson
Ola Karlsson

Reputation: 9203

It depends, Windows Phone 7 runs on Silverlight 3 with some added features.

For a more in depth list of the differences between, Silverlight "proper" and Silverlight for the phone, check this page Differences Between Silverlight on Windows Phone and Silverlight on Windows.

Also have a look at this page for Class Library Support for Windows Phone, it outlines pretty well what's supported and what's not.

For some basic info about this sort of stuff, you can also have a look at this quick start tutorial

Upvotes: 4

Related Questions