A signature pad component that allows users to draw a signature using mouse, touch, or pen input. The signature is captured as a base64-encoded PNG data URL. Supports data binding, validation, and form integration.
FormComponent<string>.GetValue
FormComponent<string>.OnContextMenu
FormComponent<string>.GetClassList
FormComponent<string>.FocusAsync
FormComponent<string>.TabIndex
FormComponent<string>.Placeholder
FormComponent<string>.Disabled
FormComponent<string>.EditContext
FormComponent<string>.ValueChanged
FormComponent<string>.HasValue
FormComponent<string>.FieldIdentifier
FormComponent<string>.ValueExpression
FormComponent<string>.FormFieldContext
FormComponent<string>.CurrentPlaceholder
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.DefaultUICulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenSignaturePad : FormComponent<string>, IComponent, IHandleEvent, IHandleAfterRender, IRadzenFormComponentBasic usage with two-way binding:
<RadzenSignaturePad @bind-Value=@signature />
With custom size and stroke:
<RadzenSignaturePad @bind-Value=@signature Style="width: 500px; height: 200px;" StrokeColor="#000" StrokeWidth="2" />A signature pad component that allows users to draw a signature using mouse, touch, or pen input. The signature is captured as a base64-encoded PNG data URL. Supports data binding, validation, and form integration.
public RadzenSignaturePad()Gets or sets a value indicating whether the user can clear the signature. Set to true by default.
public bool AllowClear { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether the user can clear the signature. Set to true by default. |
Gets or sets the accessible label text for the clear button.
public string ClearAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the accessible label text for the clear button. |
Gets or sets whether the signature pad is read-only.
public bool ReadOnly { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether the signature pad is read-only. |
Gets or sets the stroke color used for drawing.
public string StrokeColor { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the stroke color used for drawing. |
Gets or sets the width of the stroke in pixels.
public double StrokeWidth { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the width of the stroke in pixels. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
protected override Task OnAfterRenderAsync(bool firstRender)
| Type | Name | Description |
|---|---|---|
| bool | firstRender |
| Type | Description |
|---|---|
| Task |
Called from JavaScript when the user finishes drawing a stroke.
public Task OnStrokeEnd(string dataUrl)
| Type | Name | Description |
|---|---|---|
| string | dataUrl | The base64-encoded PNG data URL of the signature. |
| Type | Description |
|---|---|
| Task |
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| Task |