简体   繁体   中英

How much code can be re-used from Xamarin Android to Xamarin Windows

I am wondering if someone can help me with my question about Xamarin apps.

Let's say I would have to develop an Android application in Xamarin. Because of the app's nature I would have to develop it as Xamarin Android since Xamarin Forms would not work with Zebra's EMDK(3rd party library). If Windows 10 mobile get's more traction there could be a requirement to use this application also on Windows phones.

How much of code that I would write for Xamarin Android could be reused in future for Xamarin Windows app? Has anyone ever done something similar?

As a general rule of thumbs, you can expect to have to rewrite the views of your application if you're going to use an MVVM library.

What is not clear to me is why you can't use Zebra's EMDK for Xamarin with Xamarin Forms.
I've partners using it, here's a sample I've put together that explain the basics .

Disclaimer: I work for Zebra Technologies on the development tools

Note: I no longer work for Zebra
For question on Zebra's EMDKs a good option is Zebra's developer portal

Denis, Can you try with the info given here and see if it helps? UTF-8 without BOM

If you want to save a file with other encodings select save as and extend the save button in file dialog and select "Save with encoding". Or if you you want to get rid of this setting permanently just open File menu and select "Advanced save options" and there you should select "UTF-8 without signature" (and that also answered your last question :). Yes "UTF-8 without signature" is same as without BOM.

https://marketplace.visualstudio.com/items?itemName=SergeyVlasov.FixFileEncoding

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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