Xamarin.Forms 和 Xamarin Native 有什么区别? [英] What is the difference between Xamarin.Forms and Xamarin Native?

查看:28
本文介绍了Xamarin.Forms 和 Xamarin Native 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Xamarin.Forms 和 Xamarin Native 感到困惑.

I am confused between Xamarin.Forms and Xamarin native.

两者有什么区别?

那么在 Xamarin Native 上使用 Xamarin.Forms 的技术优势和劣势是什么?

So what are the technical positives and negatives of using Xamarin.Forms over Xamarin Native?

推荐答案

除了要点 显示在 Xamarin 网站中,您还应该考虑:

Aside from the points shown in the Xamarin Website, you should also consider:

您团队的背景

您的团队中是否有人有过为 Android 或 iOS(使用 Java 或 Obj-C/Swift)进行本地编码的经验?这种经验在本机 Xamarin 中重复使用,但他们必须学习另一个平台以在 Forms 中编码.

Does anyone in your team have a previous experience coding natively for Android or iOS (using Java or Obj-C/Swift)? This experience is reused in native Xamarin, but they'll have to learn another platform to code in Forms.

如果他们对 iOS/Android 一无所知,但知道一些 XAML,情况也是如此.当然 Xamarin.Forms 与 WPF/Silverlight 不同,但了解 XAML 肯定对我使用 Forms 有帮助.

The same is true if they know nothing about iOS/Android but know some XAML. Sure Xamarin.Forms are different from WPF/Silverlight, but knowing XAML surely helped me using Forms.

性能

Xamarin Forms 仍然存在一些问题,例如初始化时间.您应该考虑这对您的最终用户来说是否是一个问题.我不会费心等待我偶尔使用的仪表板应用程序打开,但如果消息应用程序发生同样的事情,我会很生气.

Xamarin Forms still has some issues, such as initialization time. You should consider whether or not this will be a problem for your final user. I wouldn't bother to wait a while for a dashboard app that I use once in a while to open, but I'd be angry if the same happened to a messaging app.

交货时间

由于使用表单时代码共享更大,您可能期望更快的交付时间.

Since the code sharing is bigger when using Forms, you may expect a quicker delivery time.

应用的复杂性

考虑到前一点,使用 Forms 时您可能会偶然发现一些显示停止错误(毕竟这是一项非常新的技术),这将使时间收益无效.在选择之前请考虑您的应用程序的复杂性.

Considering the previous point, using Forms you may stumble on some show stopper bug (it's a very new technology after all) that will null the time gains. Consider the complexity of your application before choosing.

这篇关于Xamarin.Forms 和 Xamarin Native 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆