AmgadWriteSignature 2.0.0
See the version list below for details.
dotnet add package AmgadWriteSignature --version 2.0.0
NuGet\Install-Package AmgadWriteSignature -Version 2.0.0
<PackageReference Include="AmgadWriteSignature" Version="2.0.0" />
<PackageVersion Include="AmgadWriteSignature" Version="2.0.0" />
<PackageReference Include="AmgadWriteSignature" />
paket add AmgadWriteSignature --version 2.0.0
#r "nuget: AmgadWriteSignature, 2.0.0"
#:package AmgadWriteSignature@2.0.0
#addin nuget:?package=AmgadWriteSignature&version=2.0.0
#tool nuget:?package=AmgadWriteSignature&version=2.0.0
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 | Versions 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. |
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.19)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.