AmgadWriteSignature 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AmgadWriteSignature --version 2.0.0
                    
NuGet\Install-Package AmgadWriteSignature -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AmgadWriteSignature" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AmgadWriteSignature" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="AmgadWriteSignature" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AmgadWriteSignature --version 2.0.0
                    
#r "nuget: AmgadWriteSignature, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AmgadWriteSignature@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AmgadWriteSignature&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=AmgadWriteSignature&version=2.0.0
                    
Install as a Cake Tool

AmgadWriteSignature

A reusable electronic signature component for Blazor, designed and developed by Amgad Edward.

Design & Development: Amgad Edward
© 2026 Amgad Edward. All rights reserved.

AmgadWriteSignature provides a canvas-based signature pad for Blazor applications. Users can sign with a mouse, touchscreen, or compatible stylus and choose their pen color before signing.

Features

  • Signature capture using mouse, touch, or stylus
  • Pen color selection before drawing
  • Clear and sign again
  • PNG signature output as Base64 or byte[]
  • JavaScript interop through a Blazor component
  • Supports multiple signature components on one page

Installation

Install the package from NuGet:

dotnet add package AmgadWriteSignature

Import the component namespace in your _Imports.razor file:

@using AmgadWriteSignature

Usage

Bind the signature as bytes:

<WriteSignature @bind-Value="Signature" />

@code {
    private byte[]? Signature;
}

Or bind the Base64 data URL:

<WriteSignature @bind-ValueBase64="SignatureBase64" />

@code {
    private string? SignatureBase64;
}

Component parameters

Parameter Type Description
Value byte[]? Signature image as PNG bytes
ValueChanged EventCallback<byte[]?> Fires when the signature changes
ValueBase64 string? Signature image as a Base64 data URL
ValueBase64Changed EventCallback<string?> Fires when the Base64 signature changes

Note: These bindings receive signatures drawn in the component. Displaying a signature passed in from the parent requires implementing loading of the initial value into the canvas. The component requires an interactive Blazor render mode for JavaScript interop.

How it works

The component draws directly on an HTML canvas. When the user finishes a stroke, JavaScript exports the canvas to a PNG data URL and sends it to Blazor via DotNetObjectReference. The Blazor component exposes the result through its value change callbacks.

Authorship

AmgadWriteSignature is an original component designed and developed by Amgad Edward.

  • Created by: Amgad Edward
  • UI/UX design: Amgad Edward
  • Software development: Amgad Edward

© 2026 Amgad Edward. All rights reserved.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.3 114 11/7/2026
3.0.2 100 11/6/2026
2.0.0 111 11/3/2026
1.0.0 120 10/31/2026