0

I have a signature pad designed in my XAML with the help of custom renderers. I am getting the user's signature and saving the signature as an image successfully. However, even when the user has not signed on the signature, and when I am clicking the Save button, an image is saved as an empty image. Is that any boolean property to know without image touch to set false?

Following renderer am using https://github.com/15mgm15/Xamarin-Forms-Signature

Dev Xam
  • 53
  • 7

1 Answers1

0

You can also judge if the user has completed the signature before saving it. Here's the code snippet below for your reference:

Xaml:

<controls:SignaturePadView
    x:Name="signatureView"
    StrokeWidth="3"
    StrokeColor="BlackWhite"
    BackgroundColor="Black" />

Code in backend:

if (!signatureView.IsBlank)
{
  // Save signature image
}
else
{
  //display the alert to finish the sign
}
Alexandar May - MSFT
  • 6,536
  • 1
  • 8
  • 15