Introducing UI Templates for Xamarin.Forms
Tags: xamarin, uitemplates, mobile, crossplatform
Published: 2019-04-16 16:42:36

---
title: Introducing UI Templates for Xamarin.Forms
published: true
tags: xamarin,UI Templates,mobile,cross platform
canonical_url: https://blog.syncfusion.com/post/introducing-ui-templates-for-xamarin-forms.aspx
---

Creating a great user interface is very important to make users stay on your app and avoid it being uninstalled from their devices. It’s not as easy to create this kind of design in cross-platform development as in native development. However, Xamarin.Forms is actively improving the designing experience in all aspects by adding new views and layouts and enabling developers to access the native APIs from the shared code base.

We at Syncfusion really understand the need in Xamarin.Forms to produce the best user interface. We provide more than [50 UI views](https://www.syncfusion.com/xamarin-ui-controls) to build any complex design from the shared code base. From our [2019 Volume 1 release](https://www.syncfusion.com/products/whatsnew/xamarin-forms), we are moving one more step forward by providing complete context-based designs. This lets developers focus on business logic and not worry about the UI, as we are taking care of that part.

## Login screen templates

In this release, we have included designs of login screens that fulfill the requirements of any login process. The login screens include login, sign up, forgot password, and reset password pages. Adding, removing, or editing the existing elements is simple and any Xamarin.Forms developer can easily understand the code.

Additionally, we have provided a ContentView called EmailEntry to add a rounded-corner appearance to a page for entry and validation of email addresses. The EmailEntry view get email addresses from the user for the login, sign up, and forgot password pages.

Login screens:

- **Login** – The login page includes entries to take emails and passwords and a button to redirect from the login page to log in using a Facebook account. This page uses the Border, Button and GradientView components from Syncfusion.
- **Sign up** – The sign-up page asks only a bit of common information from a user. But you may need this additional information, such as a phone number or address. You can simply insert those input views like any other view. Finally, you will get the perfect UI with the new items.
- **Forgot password** – This page asks for an email address from the user to which to send the link to reset the forgotten password to a new password. This page has visual elements for entering the registered email and a button to request a reset-password link.
- **Reset password** – When the user clicks the link received from the forgot password page, you can launch this page to have them set a new password. This page has visual elements for entering a new password, confirming that password, and a button to submit the new password.

![xamarin-forms-ui-templates-login-screen](https://blog.syncfusion.com/wp-content/uploads/2019/04/xamarin-forms-login-screens.png)

## Add templates from Visual Studio

The [Visual Studio item template extension](https://help.syncfusion.com/extension/xamarin-extension/syncfusion-item-templates) will be installed with your Syncfusion Essential Studio for Xamarin installation. Add the required Syncfusion page from the item template, as with any framework items. All the files, including the XAML design page, view model, view, and resources, will be added in their own folders. You don’t have to make any changes to the folder structure or namespace inside the files, as it will all be set up in a meaningful and standard pattern.

The following image shows Syncfusion item templates in Visual Studio.

![xamarin-forms-login-screen-vs-item-template](https://blog.syncfusion.com/wp-content/uploads/2019/04/xamarin-forms-login-screens-vs-item-template.png)

Specify the name for the folder that keeps the required files for the chosen template. For example, if you specify Login, our extension adds the Login as a subfolder inside the Views and ViewModels folder to keep the login files in.

![xamarin-forms-login-screens-add-new-item](https://blog.syncfusion.com/wp-content/uploads/2019/04/xamarin-forms-login-screens-add-new-item.png)

The following image shows the Solution Explorer after adding the Login page from the Visual Studio item template. Additionally, the images and font icons will be added in the platform-specific projects.

## ![xamarin.forms login screen templates](https://blog.syncfusion.com/wp-content/uploads/2019/04/login-screen-templates.png)Integrating business logic in your templates

Adding the functionalities of your business logic is easy since the template follows the MVVM design pattern and has a clear separation between views and business logic. All the clickable items in the view have been linked to a command in ViewModel. So, you don’t need to touch the design unless you are required to add or remove an element from the UI.

The following image shows the command to add functionalities in the view model of a sign-up page.

![xamarin-forms-login-screen-code](https://blog.syncfusion.com/wp-content/uploads/2019/04/xamarin-forms-login-screen-code.png)

## Summary

This is the initial set of templates for Xamarin.Forms. More templates will be added in our upcoming releases to quickly build any complex user interface in cross-platform development.

Please share your valuable feedback for these login screens in the comments section below. If you would like to request a new design, please create a new feature request through our feedback portal.

[https://www.syncfusion.com/feedback](https://www.syncfusion.com/feedback/xamarin-forms)

Make sure to explore all our controls for Xamarin.Forms available on [Google Play](https://play.google.com/store/apps/details?id=com.syncfusion.samplebrowser) and the [Microsoft Store](https://www.microsoft.com/en-us/p/syncfusion-essential-studio-for-xamarin/9nn069tldzf4#activetab=pivot:overviewtab).

The post [Introducing UI Templates for Xamarin.Forms](https://blog.syncfusion.com/post/introducing-ui-templates-for-xamarin-forms.aspx) appeared first on [Syncfusion Blogs](https://blog.syncfusion.com).