Signature pad isn't loading saved strokes
DannyTimms opened this issue · 1 comments
Description
signature pad isn't loading strokes. It used to work exactly how its coded when I first added it to the project, then all of a sudden it just doesn't seem to load anything. the strokes exist & are not null or anything.
Code
parentsSignature.Strokes = docWrapper.ParentSignature;
Expected Behavior
Signature pad loads the data and makes it visible to the user.
Actual Behavior
blank signature pad.
Basic Information
- Version with issue: 2.0.11
- Last known good version: N/A
- IDE: Visual Studio for Mac 2019
- Platform Target Frameworks: Android, iOS, Xamarin
- Target Devices:
- iPhone XR
Screenshots
Reproduction Link
I was able to get this working for me using the effect technique described here to get view life cycle events on views. I added an instance of this effect to my SignaturePadView control, then set the Strokes property of the signature pad control inside the Loaded event to my saved JSON data (IEnumerable<IEnumerable<Xamarin.Forms.Point>>). Don't forget to unsubscribe to this event if adding programmatically instead of in Xaml.