首页 文章

Xamarin.Forms共享项目与Native Forms

提问于
浏览
0

在查看了关于Xamarin Native Forms的this文章后,我有点困惑 . 我'm currently using Xamarin for a project, that is created as shared project and does not have any platform specific contents. So my pages and business logic are located inside my shared project, android, iOS and UWP projects don' t包含其他内容 .

如博客文章所述,将共享页面移动到每个平台项目会获得任何好处吗?这对我来说似乎是不必要的,因为我在3个地方有相同的代码 .

TL; DR:

使用Xamarin Native Forms(请参阅链接)与共享项目有关代码重复和性能的优势是什么 .

1 回答

  • 2

    好像你很困惑 .

    Native Forms是一个相对较新的功能,允许您将Xamarin.Forms与经典/本机Xamarin一起使用 . 您可以在您提供的链接中阅读更多信息 .

    共享项目是一种跨本机应用程序共享业务逻辑的方法 . 在official documentation中有很好的解释"Code Sharing Options" . 每个代码共享选项都有各自的优缺点 . 熟悉官方文档,如果您仍然有疑问,请询问 .

相关问题