Easily Replicate a Sign-Up UI in .NET MAUI
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (181).NET Core  (28).NET MAUI  (227)Angular  (113)ASP.NET  (49)ASP.NET Core  (81)ASP.NET MVC  (87)Azure  (42)Black Friday Deal  (1)Blazor  (236)BoldSign  (14)DocIO  (24)Essential JS 2  (110)Essential Studio  (200)File Formats  (74)Flutter  (137)JavaScript  (226)Microsoft  (122)PDF  (83)Python  (1)React  (105)Streamlit  (1)Succinctly series  (131)Syncfusion  (967)TypeScript  (33)Uno Platform  (3)UWP  (3)Vue  (46)Webinar  (53)Windows Forms  (59)WinUI  (72)WPF  (163)Xamarin  (159)XlsIO  (38)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (11)Business intelligence  (55)Button  (4)C#  (164)Chart  (148)Chart of the week  (58)Cloud  (15)Company  (440)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (73)Development  (681)Doc  (7)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (7)Essential Tools  (13)Excel  (43)Extensions  (23)File Manager  (7)Gantt  (21)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (522)Mobile MVC  (9)OLAP server  (2)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (45)Performance  (13)PHP  (2)PivotGrid  (5)Predictive Analytics  (6)Report Server  (3)Reporting  (8)Reporting / Back Office  (9)Rich Text Editor  (12)Road Map  (12)Scheduler  (54)Security  (5)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (32)Solution Services  (4)Spreadsheet  (11)SQL  (15)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (406)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (628)What's new  (343)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Easily Replicate a Sign-Up UI in .NET MAUI

Easily Replicate a Sign-Up UI in .NET MAUI

.NET MAUI is a cross-platform framework for building native desktop and mobile apps. One of the advantages it inherited from Xamarin.Forms is the possibility to create user interfaces with XAML. In this article, we will hone this skill by reproducing a sign-up UI based on Dribble.

Start by knowing the structure

To help you better understand XAML, this article is divided into steps, each representing a set of visual elements that make up the UI you need to replicate. By breaking it down this way, you can concentrate on each portion of the code and gain a simpler and faster comprehension of XAML.Replicating Sign-Up UI in .NET MAUI

Throughout the development of each block, you will be able to see the results of each step as they are completed.

What specific skills will you be learning in XAML?

In addition to strengthening your XAML skills, you will learn to implement the following .NET MAUI features:

Let’s start!

Create the JoinPage.xaml page. It’s important to start by adding the general implementation to the foundation for steps one and two. The following steps will guide you through this process.

A safe area on iOS

Disable the safe area on iOS, which allows you to extend your layout to the entire screen. You can click here if you want more information about secure areas.


Step 1: Rounded Pictures

Here, we are going to render the following UI elements:

  • Main layout
  • Predefined boundaries
  • Round image edges
  • Gradients

Main layout

A grid control will be used to design the main layout. Refer to the following code example for guidance.

<!-- Main layout -->
 <Grid RowDefinitions="Auto,Auto,Auto,*,*,*" Padding="45">
  <!-- Add the elements of steps 1 and 2 here -->


Add a gradient directly after the initial tag of the grid using the code provided below. Before proceeding, refer to the Getting Started with Gradients documentation to become familiar with the control. Then, follow these steps to implement it.

<!-- Adding the gradient-->
 <LinearGradientBrush EndPoint="0,1">
  <GradientStop Color="#38b48d" Offset="0.1" />
  <GradientStop Color="#04766f" Offset="1.0" />

<!-- Here add all the code explained in the following code block -->

Adding Gradient to the UI

Creating and positioning images

Use the border feature to round the images and add a color background. To position the images, consider that the grid is defined as the main layout (that’s why it’s important to pay attention to how the rows are defined), and use the Rotation property. You will see the implementation of each one of these images below:

<!-- Rounded images-->
 <Border Grid.Row="0"
         StrokeShape="RoundRectangle 10,10,10,10">
         <Image Source="marie"/>
<Border Grid.Row="0"
         StrokeShape="RoundRectangle 10,10,10,10">
         <Image Source="peter"/>
 <Border Grid.Row="1"
         StrokeShape="RoundRectangle 10,10,10,10">
         <Image Source="jose"/>
 <Border Grid.Row="1"
         StrokeShape="RoundRectangle 10,10,10,10">
         <Image Source="lana"/>
<!-- Here add all the code explained in the following code block -->

Creating and positioning images

Step 2: Description

This section involves designing the UI to collect the following card information:

  • Main title
  • Description
  • Join button
  • Log-in description

Adding Description to the Sign Up UI

Main title

Refer to the following code example to add the title of the application.

<!-- Main title-->
 <Label Grid.Row="2" Text="Let's get started!"

<!-- Here add all the code explained in the following code block -->


Refer to the following code example to add the application’s description.

<!-- Description-->
 <Label Grid.Row="3" Text="Connect with each other with chatting or calling. Enjoy safe and private texting. "

<!-- Here add all the code explained in the following code block -->

Join Button

Refer to the following code example to add the Join Button to the Application.

<!-- Join Button -->
 <Button Grid.Row="4" Text="Join Now" VerticalOptions="End" FontSize="14" HeightRequest="50" TextColor="#04766f" BackgroundColor="White" CornerRadius="10" Clicked="Button_Clicked"/>

<!-- Here add all the code explained in the following code block -->  

Log-in description

Here, we will use FormatText to save resources and apply different styles to the same Label.

<!-- Login description-->
 <Label Grid.Row="5" TextColor="White" VerticalOptions="End">
    <Span Text="Already have an account?  "/>
    <Span Text="Login" FontAttributes="Bold"/>

We have finished the first page, implementing steps one and two defined in the visual structure. Now, let’s continue creating the last page.

Step 3: Create an account

Let’s design the second page of our UI (i.e. the Create an Account page).

Here, we’ll design the UI with the following elements:

  • Title and description
  • Personal information form
  • Model
  • View model
  • Sign-up button and text
  • Facebook and Google buttons
  • Account Registration

Create Account page on the Sign Up UI AppCreate the CreateAccount.xaml page. After creating it, add the main layout to use:

<!-- Main layout-->
 <Grid ColumnDefinitions="*,*" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,*,*" RowSpacing="10" Padding="30">
     <!-- Add the elements of step 3. -->

In this step, we will learn how to use the Syncfusion DataForm control in addition to playing with the positioning of the controls in the Grid; let’s see:

Title and description

<!-- Title & description-->
 <Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Text="Create Account" FontSize="24"/>
 <Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="Connect with your friends today" TextColor="#9799a8"/>

<!-- Here add all the code explained in the following code block -->  

Personal information form

As you can see, this personal information form needs different types of labels and entries.

One option is to declare them in the XAML one by one, but today I want to present a more scalable option to achieve this.

Use the Syncfusion DataForm control; this allows you to add all the fields that you will need in your XAML.

To implement this, please follow these steps:

  1. Add the Syncfusion.Maui.DataForm NuGet package:Syncfusion.Maui.DataForm NuGet package
  2. Go to your MauiProgram.cs file and the CreateMauiApp method, and just before the line “.UseMauiApp<App>()”, add the .ConfigureSyncfusionCore() method.

    Your class should look like the following:

    public static MauiApp CreateMauiApp()
        var builder = MauiApp.CreateBuilder();
            .ConfigureFonts(fonts =>
    	    fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
    	    fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
         #if DEBUG
    	return builder.Build();
  1. Now, add the Syncfusion.Maui.DataForm namespace in the XAML page.

Create a model

Create a model with the attributes you want to display on the form.

Here, I’ll highlight three important properties that you’ll see in the code:

  • Short name: This is the description you want to display in the label of the field in the form.
  • Prompt: This is the equivalent of a placeholder of an entry in the form.
  • DataType: This is the type of data your field will receive in the form.
    public class UserInfo
        [Display(ShortName = "Email Address", Prompt ="Enter email address")]
        public string EmailAddress { get; set; }
        [Display(ShortName = "Mobile Number", Prompt = "(XXX) XXX-XXXX")]
        public string MobileNumber { get; set; }
        [Display(ShortName = "Password", Prompt = "*****")]
        public string Password { get; set; }

Create a View Model

Create a ViewModel to allow communication between the model and the XAML.

public class DataFormViewModel
    public UserInfo UserInfo { get; set; }
    public DataFormViewModel()
        this.UserInfo = new UserInfo();

Configuring the XAML page

You have to add XAML code as follows. Here I use LabelPosition with Top as a value to ensure that the label and the entry are displayed on the same line.

<!-- Personal information form-->
 <dataForm:SfDataForm Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Margin="-20,0,0,0" DataObject="{Binding UserInfo}">
   <dataForm:DataFormDefaultLayoutSettings LabelPosition="Top"/>

<!-- Here add all the code explained in the following code block -->  

Agreement conditions

<!-- Conditions-->
 <CheckBox Grid.Row="3" Grid.Column="0" HorizontalOptions="Start" HeightRequest="50" />
 <Label Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Text="I agree to the terms and conditions"/>

<!-- Here add all the code explained in the following code block -->

Sign-Up button and text

<!—Sign-up button-->
 <Button Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Text="Sign Up" VerticalOptions="End" FontSize="14" HeightRequest="50" Margin="0,30" BackgroundColor="#04766f" TextColor="White" CornerRadius="10"/>
<!-- Separator * sign up text-->
 <BoxView Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" HorizontalOptions="FillAndExpand" HeightRequest="1" Color="Silver"/>
 <Label Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" BackgroundColor="White" Padding="25,0" HorizontalOptions="Center" Text="Or Sign Up With"/>

<!-- Here add all the code explained in the following code block -->

Facebook and Google buttons

<!-- Facebook and google buttons-->
 <Button Grid.Row="6" Grid.Column="0" HorizontalOptions="Fill" VerticalOptions="End" ImageSource="facebookicon" BackgroundColor="Transparent" Text="Facebook" BorderWidth="1" TextColor="Black" BorderColor="Silver" CornerRadius="8" Margin="0,0,8,0"/>
 <Button Grid.Row="6" Grid.Column="1" HorizontalOptions="Fill" VerticalOptions="End" ImageSource="googleicon" BackgroundColor="Transparent" Text="Google" BorderWidth="1" TextColor="Black" BorderColor="Silver" CornerRadius="8" Margin="8,0,0,0"/>

<!-- Here add all the code explained in the following code block. -->

Account registration

<!-- Account registration-->
 <Label Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="2" VerticalOptions="End" HorizontalTextAlignment="Center">
    <Span Text="Already have an account? " TextColor="#9799a8"/>
    <Span Text="Login" FontAttributes="Bold" TextColor="#04766f"/>

<!-- Here add all the code explained in the following code block. -->

Our user interface is done; let’s see both screens finished.Replicating Sign-Up UI in .NET MAUI

That’s all! We have finished our sign-up UI in .NET MAUI!

GitHub reference

To see the complete code structure of this project, go to our Sign-Up UI in the .NET MAUI demo on GitHub.


Thank you for taking the time to read this blog post! In this article, we expanded our knowledge of XAML by exploring how to recreate a sign-up UI in .NET MAUI with the assistance of Syncfusion .NET MAUI controls. We encourage you to follow the steps outlined in this post and share your feedback in the comments section below.

Syncfusion .NET MAUI controls were developed from the ground up using .NET MAUI, which results in controls that feel like native framework controls. These controls are designed to handle large amounts of data effectively, making them great for developing top-notch cross-platform mobile and desktop applications.

To learn more about the features available in our latest release, Essential Studio 2023 Volume 1, please refer to our release notes and the What’s New pages. If you have any questions or require assistance, please don’t hesitate to contact us via our support forum, support portal, or feedback portal. We’re always ready to assist you!

Test Flight
App Center Badge
Google Play Store Badge
Microsoft Badge
Github Store Badge

Related blogs


Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed