Migrate from Xamarin.Forms SfSignaturePad to .NET MAUI SfSignaturePad

5 Jul 20221 minute to read

To migrate from the Xamarin SignaturePad to .NET MAUI SignaturePad easier, most of the APIs from the Xamarin SfSignaturePad were kept in the .NET MAUI SfSignaturePad. However, to maintain the consistency of API naming in the.NET MAUI SfSignaturePad, some of the APIs have been renamed. Please find the difference in the following topics.

Namespaces

Xamarin SfSignaturePad .NET MAUI SfSignaturePad
Syncfusion.XForms.SignaturePad Syncfusion.Maui.SignaturePad

Properties

Xamarin SfSignaturePad .NET MAUI SfSignaturePad Description

StrokeColor

StrokeColor

Gets or sets the stroke color of the signature.

MinimumStrokeWidth

MinimumStrokeThickness

Gets or sets the minimum stroke thickness of the signature.

MaximumStrokeWidth

MaximumStrokeThickness

Gets or sets the maximum stroke thickness of the signature.

Methods

Xamarin SfSignaturePad .NET MAUI SfSignaturePad Description

Save

ToImageSource

Gets the drawn signature in the SfSignaturePad as an image.

Clear

Clear

Clears the drawn signature in the SfSignaturePad.

Events

Xamarin SfSignaturePad .NET MAUI SfSignaturePad Description

StrokeStarted

DrawStarted

Occurs when a drawing is started in the SfSignaturePad.

StrokeCompleted

DrawCompleted

Occurs when the drawing is completed in the SfSignaturePad.