Search code examples
xamarinxamarin.formssignaturepad

Xamarin Forms Signature Pad


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


Solution

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