User382
User382

Reputation: 874

Xamarin Forms application architecture

I am developing an app for iOS, Android and Windows using Xamarin forms. From their web site application architecture enter image description here

shared code such as DAL or BL goes in Shared code folder and UI layer in platform specific folders. Looking at the sample code from Xamarin, the UI code is also in the shared code folder and only platform specific features in platform folder.

Now, it is confusing as where to have the UI specific code. My UI include some list views and plain views. nothing much platform specific.

Upvotes: 3

Views: 731

Answers (1)

Jason
Jason

Reputation: 89082

That image illustrates code sharing with Xamarin Platform projects (Xamarin Android and Xamarin iOS), not Xamarin Forms. Platform projects do not have any shared UI.

For a Xamarin Forms project, you would place any shared UI code in your shared project. Any custom renderers or other platform specific UI would go in the individual platform project.

Upvotes: 4

Related Questions