Class SfSignaturePad
Singature control is used for the signature can be drawn and customize by using the color and stroke thickness.
Inheritance
Namespace: Syncfusion.XForms.SignaturePad
Assembly: Syncfusion.SfSignaturePad.XForms.dll
Syntax
public class SfSignaturePad : ContentView
Constructors
SfSignaturePad()
Initializes a new instance of the SfSignaturePad class.
Declaration
public SfSignaturePad()
Fields
ImageSourceProperty
Identifies the ImageSource bindable property.
Declaration
public static readonly BindableProperty ImageSourceProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
MaximumStrokeWidthProperty
Identifies the MaximumStrokeWidth bindable property.
Declaration
public static readonly BindableProperty MaximumStrokeWidthProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
MinimumStrokeWidthProperty
Identifies the MinimumStrokeWidth bindable property.
Declaration
public static readonly BindableProperty MinimumStrokeWidthProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeColorProperty
Identifies the StrokeColor bindable property.
Declaration
public static readonly BindableProperty StrokeColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
ImageSource
Gets imageName to be saved.
Declaration
public ImageSource ImageSource { get; }
Property Value
Type |
---|
Xamarin.Forms.ImageSource |
MaximumStrokeWidth
Gets or sets maximum stroke width for the pen.
Declaration
public double MaximumStrokeWidth { get; set; }
Property Value
Type |
---|
System.Double |
MinimumStrokeWidth
Gets or sets Minimum Stro keWidth for the pen.
Declaration
public double MinimumStrokeWidth { get; set; }
Property Value
Type |
---|
System.Double |
StrokeColor
Gets or sets color for the signature to be drawn.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
Methods
Clear()
Clear method is used to clear the signature.
Declaration
public void Clear()
Save()
Save method is used to save the signature.
Declaration
public void Save()
Events
Cleared
Image clear event
Declaration
public event EventHandler Cleared
Event Type
Type |
---|
System.EventHandler |
Saved
Image saved event
Declaration
public event EventHandler Saved
Event Type
Type |
---|
System.EventHandler |
StrokeCompleted
The StrokeCompleted event occurs when end the draw in the Syncfusion.XForms.SignaturePad control.
Declaration
public event EventHandler StrokeCompleted
Event Type
Type |
---|
System.EventHandler |
StrokeStarted
The StrokeStarted event occurs when start to draw in the Syncfusion.XForms.SignaturePad control.
Declaration
public event EventHandler<CancelEventArgs> StrokeStarted
Event Type
Type |
---|
System.EventHandler<CancelEventArgs> |