What are Xamarin and Xamarin Forms?
- Xamarin is a cross-platform to develop Multi-Platform Applications.
- Xamarin is a shared code(C#) but separate Design UIs Android(Java), Windows(C#), iOS (Objective – C & XCODE).
- Xamarin forums are UIs & shared codes (C#) are same. To develop multi-platforms Applications, run all the projects (Android, Windows and iOS) at the same time.
Prerequisites
- Visual Studio 2017 Enterprise.
- The steps given below are required to follow the order to design Switch Cell and Table View Android Applications, using Xamarin Forms
Step 1
- Go to Visual Studio.
- Click File -> New -> Project.

Step 2
- In this step create Project, click C# -> Cross Platform(Android, iOS, Windows) -> Cross Platform App(Native or Xamarin forms).
- Enter the Application Name, followed by clicking OK.

Step 3
- Afterwareds, go to New Cross Platform app and click Blank App.
- UIs Technology and click Xamarin forums.
- Code sharing a strategy for which you need to click PCL(Portable Class Library).
- Click OK.

Step 4
- In UWP Project, select Target version & Minimum Version, followed by clicking OK.

Step 5
- In this step, go to Solution Explorer -> Portable Class Library, followed by clicking XAML. Insert the code given below the XAML page and save it.

- <?xml version="1.0" encoding="utf-8" ?>
- <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:SwitchCell" x:Class="SwitchCell.MainPage">
- <TableView>
- <TableView.Root>
- <TableSection Title="Privacy">
- <SwitchCell Text="Allow Spamming" />
- <SwitchCell Text="Track Location" On="True" /> </TableSection>
- <TableSection Title="Performance">
- <SwitchCell Text="Run Super-Fast" On="True" />
- <SwitchCell Text="Cache Data Clear" />
- <SwitchCell Text="Steal Clock Cycles" /> </TableSection>
- </TableView.Root>
- </TableView>
- </ContentPage>









Rafnas T PPosted May 4, 2017, 7:35 AM
NIce, keep sharing...
Joe WilsonPosted May 4, 2017, 5:22 AM
Thank you for sharing it.