Introduction
Xamarin.Forms is a mobile application framework for building mobile app user interfaces(UI). The cross-platform UI toolkit allows developers to easily create native user interface layouts that can be shared across Android, iOS, and Windows Phone.
A new version of Xamarin.Forms has been published recently.
- Stable Release: Xamarin.Forms 2.4.0.280
XAML
XAML stands for eXtensible Application Mark up Language. The XAML file describes the interface with all its elements, while the Code behind handles all the events and coding.
Tools
I am using Windows10 operating system and Visual Studio 2017 with Xamarin installed in it. You can also develop Xamarin.Forms applications using Visual Studio.
C#
C# was designed by Anders Hejlsberg, and its development team is currently led by Mads Torgersen. C# has already been used for projects as diverse as dynamic websites, development tools, and even compilers. C# is a new language created by Microsoft and submitted to the ECMA for Standardization. The most recent version is C# 8.0 released this year.
Login
Our login page consists of the following controls.
- Stack Layout
- Label
- Image
- Entry
- Button
StackLayout
In stack layout, we use different elements to design a UI. In a stack layout, we use Margin and Padding properties to add margins and padding. The Image element is used to display images. Label and Text elements are used for label and text. Text element settings include text, text color, and font size. Next element is Entry. We use Entry as a placeholder. The last element is a Button.
Button is used on the Login page. Once the button is clicked, the next page navigates to the Signup or Layout.
Creating a Xamarin.Forms Project
Follow these steps to create a new project.
Open Visual Studio. Go to File>New Project>Cross Platform and then select Mobile App (Xamarin.Forms).

Now, select the following settings on the next screen:
- Blank app
- Forms
- .Net Standard

Press OK to create the project.
Now, your project is ready and you can start designing your UI, add code behind, build, test, and run.

If you look at the Solution Explorer, there are three projects in this solution:
- Android project.
- iOS project
- Window project
Visual Studio keeps a seperate project for separate platform.
Now, open MainPage.xaml and write some code in xaml and design our UI. This is what XAML looks like with various controls we discussed above.
Xaml



Zeeshan AliPosted Jul 24, 2019, 5:10 AM
Nyceee work.....Gud lock
M MunibPosted Jun 17, 2019, 6:51 AM
Congrats Boy!