Development for iPhone / Android and WPF

I want to write an application for three platforms (iPhone, Android and WPF). I am looking at using monotouch and monodriod to achieve this so that I can support all development in .net

Now I want to be able to reuse as much code as possible, so I need a little advice on how I should do this, since I have no idea where to start.

How do I separate a project to maximize the amount of code reuse between three different platforms?

Any suggestions would be appreciated.

+4
source share
2 answers

I can see that the code codes in the Model-View-Controller (MVC) lines work very well. Perhaps you have a model and controllers in one common project and just have separate projects for the β€œView” of each of the different platforms.

Thus, you can save your data model and logic separately from how it is displayed to the user. In addition, you can easily use the Model / Controller project among various mobile applications, web applications, and desktop applications.

+4
source

I understand that this was not your question, but depending on your requirements, you may take a look at PhoneGap . This is actually not a .NET solution, but it is probably worth a look if a cross platform is important to you.

EDIT:

You might also want to take a look at this blog post (which has been published since you asked your question). Discusses problems with trying to support iOS and Android and WP7 with the same code base.

+1
source

Source: https://habr.com/ru/post/1342185/


All Articles