Xamarin Forms Application Architecture

I am developing an iOS, Android and Windows app using Xamarin. From the architecture of your websiteenter image description here

common code such as DAL or BL goes into the common code folder and UI layer in specific framework folders. Looking at the sample code from Xamarin, the UI code is also in the shared code folder, and only on specific platforms in the framework folder.

Now, confusingly, how is the specific UI code somewhere. My user interface includes some kinds of lists and simple views. nothing special for a particular platform.

+3


source to share


1 answer


That image illustrates code sharing with Xamarin Platform (Xamarin Android and Xamarin iOS) projects, not Xamarin Forms. Platform projects do not share a common user interface.



For a Xamarin Forms project, you must put the shared UI code into your shared project. Any custom renderers or other platform-specific user interface will be included in a separate platform project.

+4


source







All Articles