开发者

Is programming Windows Phone 7 different from normal .NET programming?

I know that there must be some differences. I have a Silverlight component (Timeline) and I want to make it work on Windows Phone 7. 开发者_开发问答do I need to make a lot of changes ? I know .NET and Silverlight but I'm new to mobile phones programming.


The UI component of the Windows Phone 7 is supposed to be the same as Silverlight 3, so your timelines should work, as long as they worked properly in Silverlight 3.

The differences are in the APIs (phone-specific stuff... accelerometers, location, etc) and the BCL (Base Class Libraries) because Windows Phone 7 uses the .Net Compact Framework, where Silverlight uses its own implementation of the BCL.

These issues, coupled with the smaller screen and usability differences based on the small touch screen, will make it so you can't simply run the same app easily on the phone. You CAN, however, share a lot of your code, including much of your view code, when porting to the phone.


I don't know Silverlight but a lot of the .Net framework is not available in WinMo (it usually says on the MSDN pages if it's available or not).
You might have to change your app for other reasons though, since it'll have a smaller screen and you have to be careful about battery usage etc.

The following link has a list of differences:
http://msdn.microsoft.com/en-us/library/ff426930%28VS.96%29.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜