How do I organize a Xamarin.Forms solution?

I am working on a Xamarin.Forms project. When I create the Xamarin.Forms portable solution, I get one portable project and four platforms for iOS, Android, Windows8.1 and WindowsPhone 8.1 respectively.

I have all the user interface pages and logic codes in a portable project and all the platform calls in each platform project. Now, referring to Xamarin Architecture , we can have six application levels.

To achieve this, what changes will I need in my project structure?

Will I need to separate the user interface page and put it in a separate project and a separate project for business logic? I am new to Xamarin, so I would like to know an expert look.

+4
source share
1 answer

If you need to implement the same project for Web / Desktop, how do you do it? Here you should also use the same implementation.

Basically, in the Xamarin.Forms solution, the portable class library project is the entry point to your application. IOS, Android, Windows 8.1 and WindowsPhone 8.1 projects are used to package your user interface in the Portable Class Library project for each platform. Therefore, you do not need to rewrite the user interface for each platform.

All your DTOs, data access level, and algorithms will be directly tied to the Portable Class Library project.

+1
source

All Articles