Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfViewer.SignatureCreating Event

Occurs before a signature is added so you can cancel adding the signature.

Namespace: DevExpress.Maui.Pdf

Assembly: DevExpress.Maui.Pdf.dll

NuGet Package: DevExpress.Maui.Pdf

#Declaration

C#

#Event Data

The SignatureCreating event's data class is PdfHandwrittenSignatureCreatingEventArgs. The following properties provide information specific to this event:

Property Description
Builder Returns an object that is used to build a signature.
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.

#Remarks

Set the e.Cancel property to true in the SignatureCreating event handler to cancel signature creation.

The following example customizes the newly created signature appearance settings:

<dxp:PdfViewer ...
               SignatureCreating="pdfViewer_SignatureCreating">
private void pdfViewer_SignatureCreating(object sender, PdfHandwrittenSignatureCreatingEventArgs e) {
    e.Builder.LineWidth = 5;
    e.Builder.Color = Colors.Green;
}

For more information about signatures, refer to the following help topic: Sign Documents.

See Also