简体   繁体   English

为Windows Mobile,Android和iPhone开发C#应用程序

[英]Develop a C# application for Windows Mobile, Android & iPhone

I have a project where I need to build a C# application that is able to run in iPhone, Android and Windows Mobile. 我有一个项目,我需要构建一个能够在iPhone,Android和Windows Mobile中运行的C#应用​​程序。

For windows Mobile that is no problem, but I think its a challenge when we try to develop for Android and iPhone. 对于没有问题的Windows Mobile,但我认为当我们尝试为Android和iPhone开发时,这是一个挑战。

I've been searching for solutions and i found some information about Mono-Android and MonoTouch . 我一直在寻找解决方案,我找到了一些有关Mono-AndroidMonoTouch的信息

My question is, has anyone used this API's? 我的问题是,有没有人使用过此API? Are they good? 他们好吗? Do they really take advantage of Android/iPhone native api's? 他们真的利用Android / iPhone原生api的优势吗? Can I with only one source code create an application for both platforms? 我只能用一个源代码为两个平台创建一个应用程序吗?

And finally, is there any other way of creating a C# application for these mobile platforms? 最后,还有其他方法可以为这些移动平台创建C#应用程序吗?

Yes they are very solid. 是的,他们非常坚实。 They give you .NET 4.0 with all of that capability & the ability to share data access, networking/API integration, and business logic in shared assemblies. 它们为.NET 4.0提供了所有这些功能,并能够在共享程序集中共享数据访问,网络/ API集成和业务逻辑。 You'll of course have to write the user interface portion of the applications in C# but specific to the platform. 您当然必须在C#中编写应用程序的用户界面部分,但特定于平台。

For example, MonoTouch is like Cocoa in C#. 例如,MonoTouch就像C#中的Cocoa。 It will feel unlike your typical .NET programming style, so make sure you get comfortable reading Objective-C for documentation & assistance. 它会与您典型的.NET编程风格不同,因此请确保您阅读Objective-C以获取文档和帮助。

Also recommended is to follow the UI guidelines of the platform in question. 还建议遵循相关平台的UI准则。 Don't create a cookie cutter app for all platforms or it will suck everywhere. 不要为所有平台创建一个cookie切割器应用程序,否则它将无处不在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM