SignaturePad - only displays a box

I am using SignaturePad control in a PCL Forms app. On Android everything works perfectly. When running on iOS all I get is a yellow background rectangle. I changed background to yellow to ensure control was being added. I have browsed the web extensively. I have also dug through the samples. Any assistance would be appreciated.

Here is my code (less button handler):

Thanks, Glen

public class CaptureSignature : ContentPage {
    SignaturePadView signaturePadView;

    public CaptureSignature() {
        signaturePadView = new SignaturePadView();

        signaturePadView.BackgroundColor = Color.Yellow;
        signaturePadView.SignatureLineColor = Color.Black;
        signaturePadView.HeightRequest = 150;
        signaturePadView.WidthRequest = 240;
        signaturePadView.StrokeColor = Color.Black;
        signaturePadView.StrokeWidth = 2;
        signaturePadView.CaptionText = "Please sign above";
        signaturePadView.ClearText = "Clear";
        signaturePadView.ClearTextColor = Color.Red;

        Button btnDone = new Button {
            HorizontalOptions = LayoutOptions.Center,
            Text = "Save"
        };
        btnDone.Clicked += BtnDone_Clicked;

        Content = new StackLayout {
            Spacing = 10,
            Children = {
                signaturePadView,
                btnDone
            }
        };
    }

}

Best Answer

Answers

Sign In or Register to comment.