0

Can someone please guide me on how to use a signature pad on xamarin FORMS.

I have tried resources available online, but the dont work in my project.

 <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:acr="clr-namespace:Acr.XamForms.SignaturePad;assembly=Acr.XamForms.SignaturePad" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Checkin.Signature">
<ContentPage.Content>
<ScrollView>
    <StackLayout>
        <acr:SignaturePadView
            x:Name="padView"
            HeightRequest="320"
            WidthRequest="240"

            BackgroundColor="White"
            CaptionText="Caption This"
            CaptionTextColor="Black"
            ClearText="Clear Me!"
            ClearTextColor="Red"
            PromptText="Prompt Here"
            PromptTextColor="Red"
            SignatureLineColor="Aqua"
            StrokeColor="Black"
            StrokeWidth="2"
        />
    </StackLayout>
</ScrollView>
</ContentPage.Content>

Above is one of the codes I have used. A signature pad appears but doesent display anything when I draw on top of it.

This is how the Red Signature pad appears enter image description here

anslem arnolda
  • 261
  • 1
  • 7
  • 19

2 Answers2

0

try to install it on droid project too. that works for me

Hugo Dimas
  • 24
  • 2
0

In the AppDelegate, paste the following code:

public static Type dummyt = typeof(SignaturePad.Forms.iOS.SignaturePadRenderer);

As shown below:

public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
    {
        public static Type dummyt = typeof(SignaturePad.Forms.iOS.SignaturePadRenderer);
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {

The problem apparently is that some DLLs are not

Shaun Grech
  • 351
  • 3
  • 5