appstudio到xamarin crossplatform [英] appstudio to xamarin crossplatform

查看:71
本文介绍了appstudio到xamarin crossplatform的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一下是否有可能将windows appstudio的代码放到xamarin crossplatform?我的朋友在appstudio中创建了一个应用程序,并让我帮他完成他的工作并继续编码。

Hi, I want to ask if there is a possibility to put code from windows appstudio to xamarin crossplatform? my friend created an app in appstudio and asked me to help him with his work and continue in coding.

推荐答案

我想问是否有是否有可能将Windows appstudio的代码放到xamarin crossplatform?我的朋友在appstudio中创建了一个应用程序并让我帮他完成他的工作并继续编码。
Hi, I want to ask if there is a possibility to put code from windows appstudio to xamarin crossplatform? my friend created an app in appstudio and asked me to help him with his work and continue in coding.

嗨Salmiak,

答案是肯定的。您可以从App Studio下载源代码并在Visual Studio中打开项目以在Emulator中运行它以进行预览。然后你需要进行必要的配置,比如删除与Xamarin不兼容的Windows特定类

The answer is yes. You can download the source code from App Studio and open the project in Visual studio to run it in Emulator for preview. Then you need to make necessary configuration, like removing the Windows-specific classes that are not compatible with Xamarin.

我认为这个博客( 使用Xamarin将Windows App Studio通用应用程序安装到Android / strong>)@Josh Morales撰写的详细信息 你
可以参考。

I think this blog (Porting a Windows App Studio Universal App to Android using Xamarin) written by @Josh Morales has the details you can refer to.

你也可以使用 Xamarin.forms API 在C#和XAML中完全构建适用于iOS,Android和Windows的本机应用程序。但我担心您无法完全重复使用以前的代码,因此您可以根据
将项目重写为从App Studio下载的UWP源代码。因为Xamarin中界面控制的最多方法和事件与UWP不同,尽管它们继承自UWP。如果代码共享比自定义UI更重要
,则此方法更适合您的应用。

You can also use Xamarin.forms API to build native apps for iOS, Android and Windows completely in C# and XAML. But I'm afraid you're not able to reuse your former code completely so you may rewrite your project according to your UWP source code downloaded from App Studio. Because the most method and event of interface controls in Xamarin are different from UWP's, although they inherit from UWP's. This approach is more appropriate for your app if code sharing is more important than custom UI.

有关详细信息,您可以按照 文档

For more details, you may follow the documentation.

祝你好运,

Mattew Wu

Mattew Wu


这篇关于appstudio到xamarin crossplatform的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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