Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharable Controls/Views in Xamarin

Tags:

xamarin

Is it possible to design a view and use it for all platforms in Xamarin. Any available control library that are not platform specific and can be shared across all platforms in xamarin?. How can we maximum reuse the UI? Please help.

like image 453
Sree Avatar asked Jan 08 '14 09:01

Sree


2 Answers

Use the Xamarin.Forms API to quickly build shared screens for iOS, Android and Windows Phone. The interface for the CRM app above is written using 100% shared C#.

Tutorial here

Sample application with 1 UI which is shared among all 3 platforms is here

Still Xaml auto intellisense is not supported in Visual Studio as xamarin.forms might be still in beta phase and will have that support very soon.

Hope this helps.

like image 169
Nirav Mehta Avatar answered Sep 28 '22 14:09

Nirav Mehta


Xamarin 3 has just introduced a cross-platform UI framework called Xamarin.Forms. It has a limited subset of controls right now, but it works across Android, iOS, and Windows Phone.

like image 24
Michael Cook Avatar answered Sep 28 '22 13:09

Michael Cook