Getting Started With Xamarin Forms dot Net Standard Visual Studio 2017

Xamarin is Cross Platform App development tool owned by Microsoft. By using Xamarin tools you can create hybrid as well as native application for Windows, iOS and Android.
Xamarin tools are available to download with Visual Studio and you can directly create AndroidiOS and Windows apps from Visual Studio itself.
Most of the common code is written in C#. So you don’t need to learn Java, Objective-C or Swift to build apps if you already know C#.
In this tutorial I am going to show you how to create Xamarin Forms app using .Net Standard and Visual Studio.

Getting Started With Xamarin Forms dot Net Standard Visual Studio 2017

  1. In Visual Studio IDE , Select File>New>Project, this will pop project selection template window similar to image below.xamarin forms
  2. Now Select Visual C# from left pane, denoted by 1.
  3. Expand the Visual C# node of above step and select Cross Platform denoted by 2.
  4. From Right pane select Mobile App (Xamarin.Forms)  template, denoted by 3.
  5. Enter Project Name in Textbox 4 and select project location, denoted by 5.
  6. Once you complete the above steps, wait for visual studio to create projects.
  7. After project creation, you will see 4 projects in your solution, similar to image below.xamarin projects
  8. First project in your solution is Xamarin Forms project, it’s output will be rendered in all other three platforms.
  9. Second project in your solution with name “ProjectName”.Android, is android project and it will be executed on android platform, we can put any android platform specific code here.
  10. Third project in your solution with name “ProjectName”.iOS, is iOS project and it will be executed on iOS platform, we can put any iOS platform specific code here.
  11. Fourth and last project in your solution with name “ProjectName”.UWP, is Universal Windows Project and it will be executed on all windows platform, we can put any windows platform specific code here.
  12. We are done with the project creation part, now it’s time to run the app and see the output.
  13. Select any project from Solution Explorer windows (except iOS, it needs attached iOS or MAC device to build and execute)
  14. Right Click on it and from context menu select Debug>Start new Instance to execute any app.
    **Android App will take several minutes varying from 5 to 15 on it’s first run
  15. Add extra controls to see different controls and their functionality, all controls and their documentation of Xamarin forms can be found on Microsoft Official Site

Watch the video for reference and subscribe to my channel for more Xamarin tips and tricks tutorial.

For support or project discussion, you can contact me by Contact Form