Tritium UI
TritiumSignaturePad
Capture a signature with a finger or pointer and export it as a PNG.
Key features
- Draw one or more strokes on the pad.
- Set the ink color and stroke width.
- Read IsEmpty before you accept the form.
- Clear the pad from a button.
- Export the strokes to a PNG stream at a chosen size.
- Opt in to haptic or sound feedback with the other editors.
Platforms
Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).
Main API
- StrokeColor . Ink color.
- StrokeWidth . Ink thickness.
- IsEmpty . True when the pad has no strokes.
- ToPngStreamAsync . Renders the signature to a PNG stream.
Basic example
Declare this namespace on the page.
xmlns:editors="clr-namespace:Tritium.Maui.Editors;assembly=Tritium.Maui.Editors"
<editors:TritiumSignaturePad x:Name="Pad" HeightRequest="200" StrokeWidth="2" /> Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.