Skip to content

A quick-start project that helps you integrate the Signature Pad control with the .NET MAUI application.

Notifications You must be signed in to change notification settings

SyncfusionExamples/getting-started-with-the-dotnet-maui-signature-pad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with the .NET MAUI SignaturePad

The .NET MAUI SignaturePad is an interactive UI control that allows users to capture smooth and realistic signatures. A quick-start project that helps you integrate the Signature Pad control with the .NET MAUI application by adding the Syncfusion.Maui.SignaturePad package from NuGet.

Project prerequisites

Make sure that you have the compatible versions of Visual Studio 2022 with the Dot NET MAUI workload and .NET Core SDK 7.0 or later version in your machine before starting to work on this project.

How to run this application

To run this application, you need to first clone the getting-started-with-the-dotnet-maui-signature-pad repository and then open it in Visual Studio 2022. Now, simply build and run your project to view the output.

  1. Clone the sample and open it in Visual Studio.

    Note: If you download the sample using the "Download ZIP" option, right-click it, select Properties, and then select Unblock.

  2. Register your license key in the App.cs file as demonstrated in the following code.

     public App()
     {
         //Register Syncfusion license
         Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY");
    
         InitializeComponent();
    
         MainPage = new NavigationPage(new MainPage());
     }
    
  3. Set any one of the platform specific projects (iOS, Android or UWP) as a start-up project.

  4. Clean and build the application.

  5. Run the application.

License

Syncfusion has no liability for any damage or consequence that may arise by using or viewing the samples. The samples are for demonstrative purposes, and if you choose to use or access the samples, you agree to not hold Syncfusion liable, in any form, for any damage that is related to use, for accessing, or viewing the samples. By accessing, viewing, or seeing the samples, you acknowledge and agree Syncfusion’s samples will not allow you seek injunctive relief in any form for any claim related to the sample. If you do not agree to this, do not view, access, utilize, or otherwise do anything with Syncfusion’s samples.

Adding a .NET MAUI SignaturePad reference

Syncfusion .NET MAUI controls are available in Nuget.org. To add .NET MAUI SignaturePad control to your project, open the NuGet package manager in Visual Studio, search for Syncfusion.Maui.SignaturePad and then install it.

Step 1: Create a .NET MAUI application project in Visual Studio 2022.

Step 2: Add the Syncfusion.Maui.Core Nuget to the project from nuget.org.

Step 3: In the MauiProgram.cs file, register the Syncfusion.Maui.Core handler as follows.

C#

using Syncfusion.Maui.Core.Hosting;
namespace SignaturePad;
public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .ConfigureSyncfusionCore()
            .ConfigureFonts(fonts =>
            {
                fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
            });
        return builder.Build();
    }
}

Customization in SignaturePad control

Initialize signature pad

XAML

<ContentPage
    . . .
    xmlns:signaturePad="clr-namespace:Syncfusion.Maui.SignaturePad;assembly=Syncfusion.Maui.SignaturePad">
    <Grid>
        <signaturePad:SfSignaturePad />
    </Grid>
</ContentPage>

OUTPUT

image

Customize signature stroke color

XAML

<signaturePad:SfSignaturePad StrokeColor="Red" />

OUTPUT

image

Customize signature stroke thickness

XAML

<signaturePad:SfSignaturePad MinimumStrokeThickness="1"
                             MaximumStrokeThickness="6" />

OUTPUT

image

Features and Benefits

Customization

The appearance of the .NET Maui SignaturePad is highly customizable.

Realistic, handwritten signature look and feel

The unique stroke rendering algorithm draws a signature based on the speed of the gesture drawing along with minimum and maximum stroke thicknesses, which gives a realistic handwritten look and feel to the signature.

Save signatures as images

Save the drawn signature as an image. This converted image can be embedded in documents, PDFs, and anything else that supports using images to denote a signature.

Events

Events occur whenever you start and finish drawing in the SignaturePad.

Related links

Learn More about .NET MAUI SignaturePad

Download Free Trial

Pricing

Documentation

View Demos

Community Forums

Suggest a feature or report a bug

Online example

About Syncfusion .NET MAUI Controls

Syncfusion's .NET MAUI UI Controls library is the only suite that you will ever need to build an application since it contains over 40 high-performance, lightweight, modular, and responsive UI Controls in a single package. In addition to SignaturePad, we provide popular .NET MAUI Controls such as DataGridCharts, Scheduler, ListView, and Excel Library.

About Syncfusion

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 29,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today, we provide 1800+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, JavaScript, and .NET MAUI), and desktop development (WinForms, WPF, WinUI,UWP, Flutter, and .NET MAUI). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.


sales@syncfusion.com | www.syncfusion.com | Toll Free: 1-888-9 DOTNET

About

A quick-start project that helps you integrate the Signature Pad control with the .NET MAUI application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages