FreakyAli/Maui.FreakyControls

SIgnaturePad - Change Clear Button Text

sk1llsh0t opened this issue · 4 comments

Description

I'm trying to change the clear button text from a "X" to "Clear". I created a png image called "clear.png" and got the base64 encoded string of the image. setting the ClearImageBase64 property to this string doesn't change the button image. How can I do this?

Thanks!

I realized my error. I was using a png and not a svg. after converting the png to svg and then base64 encoding the image, it started working.

@sk1llsh0t Happy to know you found a solution to your issue, if you find the repo resourceful be sure to share it with your friends and leave a ⭐ that keeps me going, Also feel free to leave a feature or control request if any 😄

I was able to update the clear button text but it is quite tiny. is there a way to change the size of the button on the control?

Well the thing is I designed it in a way that it was supposed to be an icon, and hence I gave it a fixed size of 35 which you can find

Now there are two things that can be done, either you can create your own version of SignaturePad using the FreakySignatureCanvasView and then you can edit it as you like or you can raise a PR with the option to customize size.

If you want me to add this feature, I can but it won't happen soon since I have some other controls in mind that are on priority and I need those for my personal projects.

I would recommend you create your own SignaturePad using SignatureCanvas that way you will have full control over the design of it!