Class SfSignaturePad
Inheritance
System.Object
SfSignaturePad
Implements
Microsoft.Maui.IView
Microsoft.Maui.IElement
Microsoft.Maui.ITransform
Namespace: Syncfusion.Maui.SignaturePad
Assembly: Syncfusion.Maui.SignaturePad.dll
Syntax
public class SfSignaturePad : View, ISignaturePad, IView, IElement, ITransform, IParentThemeElement, IThemeElement
Constructors
SfSignaturePad()
Initialize SignaturePad
Declaration
public SfSignaturePad()
Fields
MaximumStrokeThicknessProperty
The backing store for the MaximumStrokeThickness field.
Declaration
public static readonly BindableProperty MaximumStrokeThicknessProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
MinimumStrokeThicknessProperty
The backing store for the MinimumStrokeThickness field.
Declaration
public static readonly BindableProperty MinimumStrokeThicknessProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
StrokeColorProperty
The backing store for the StrokeColor field.
Declaration
public static readonly BindableProperty StrokeColorProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
MaximumStrokeThickness
Gets or sets the minimum stroke thickness of the signature.
Declaration
public double MaximumStrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | double |
Examples
MinimumStrokeThickness
Gets or sets the maximum stroke thickness of the signature.
Declaration
public double MinimumStrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | double |
Examples
StrokeColor
Gets or sets the stroke color of the signature.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Graphics.Color | Defaults to |
Examples
Methods
Clear()
Clears the drawn signature in the SfSignaturePad.
Declaration
public void Clear()
Examples
<signaturePad:SfSignaturePad x:Name="signature" />
<Button Text = "Clear" Clicked="OnClearButtonClicked" />
GetSignaturePoints()
Method used to get the interaction point collections.
Declaration
public List<List<float>> GetSignaturePoints()
Returns
Type |
---|
System.Collections.Generic.List<System.Collections.Generic.List<System.Single>> |
MeasureOverride(Double, Double)
Declaration
protected override Size MeasureOverride(double widthConstraint, double heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
System.Double | widthConstraint | |
System.Double | heightConstraint |
Returns
Type |
---|
Microsoft.Maui.Graphics.Size |
ToImageSource()
Gets the drawn signature in the SfSignaturePad as an image.
Declaration
public ImageSource ToImageSource()
Returns
Type |
---|
Microsoft.Maui.Controls.ImageSource |
Examples
<signaturePad:SfSignaturePad x:Name="signature" />
<Button Text = "To Image" Clicked="OnSaveButtonClicked" />
Events
DrawCompleted
Occurs when the drawing is completed in the SfSignaturePad.
Declaration
public event EventHandler<EventArgs> DrawCompleted
Event Type
Type |
---|
System.EventHandler<System.EventArgs> |
Examples
DrawStarted
Occurs when starts drawing in the SfSignaturePad.
Declaration
public event EventHandler<CancelEventArgs> DrawStarted
Event Type
Type |
---|
System.EventHandler<System.ComponentModel.CancelEventArgs> |
Examples
Implements
Microsoft.Maui.IView
Microsoft.Maui.IElement
Microsoft.Maui.ITransform