Hi,
I would like to remove the rounded corners in SfNumericEntry on .NET MAUI. In Xamarin.Forms I was able to create an Renderer of type SfNumericEntryRenderer. This doesn't seem to work anymore in MAUI.
I've tried to create a handler of type EntryHandler, but this throws an error. Also tried LayoutHandler which removed all the styling of the entry.
I couldn't find any sample of a handler for SfNumericEntry, is there someone who is able to provide me with some sample code to create the handler accordin
Hi Mittch,
Thanks for contacting Syncfusion support.
After investigating the reported query, we would like to inform you that there is no direct method to remove the rounded corners of the SfNumericEntry. As a workaround, we suggest setting the SfNumericEntry "ShowBorder" property to False and providing a framework Border to the NumericEntry control. For your convenience, we have attached a sample for your reference. Additionally, we have provided instructions on how to use handlers for the NumericEntry control, enabling you to implement your own customizations. Please review the attached sample and let us know if you have any further questions or concerns.
Regards,
Arunachalam K
Hi,
This is not a viable solution since it requires you to do this for every entry, and we have a lot.
Why can't we create renderers/handlers anymore? This is how MAUI works. In order to customize the SfNumericEntry I have to do this for all the entries at the moment instead on control level so I can reuse it.
Is there a roadmap in order to fix this? It seems like a leap backwards from what we were able to do and actually becomes a reason for us to step away from SF.
Thank you!
Kind regards,
Mittch
Hi Mittch ,
Query : This is not a viable solution since it requires you to do this for every entry, and we have a lot. In order to customize the SfNumericEntry I have to do this for all the entries at the moment instead on control level so I can reuse it.
We have reviewed your query and modified the sample accordingly. In the updated sample, we have created a SfNumericCustom class that inherits from SfNumericEntry. Within this custom class, we have handled the HandlerChanged event. Now, you can perform your customizations using handlers on this class, thus avoiding the need to create them for every entry individually. We have attached the modified sample. Please review it and let us know the details or requirements if they differ from the suggested solution.
Regards,
Ahamed Ali Nishad.
Hi,
Thank you for your response. I'm aware I can do this, but I'm trying to say this is not the way to go (best practice) in MAUI with handlers.
I've supplied sample code(iOS only at moment) of an Entry of how it should look like (CustomBorderEntry). This entry has properties where I can set the BorderColor and BorderFocusColor (also via styles.xaml). This entry has no rounded corners.
Applying the same code on the MaskedEntry and SFNumeric entry gives me a totally different behavior then expected. I would like to avoid the Border in XAML and do it via handlers because this also supports VisualStateManager.
Attachment: NumericEntry_9976139.zip
Hi Mittch,
Currently, we do not have the support to remove the rounded corners of the SfNumericEntry and SfMaskedEntry. We have already created a feature request for this "Provide the clip support for the SfNumericEntry" and "Provide the clip support for the SfMaskedEntry". Please find the link below to track the status of the feature implementation.
Feedback: Feedback - 52492, Feedback - 52508
Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have an immediate plan to implement this feature since we have committed to already planned work. So, this feature will be available in any of our upcoming releases.
If you have any more specifications/suggestions for the feature request, you can add them as a comment in the portal. We will share the release details in the feedback itself.
Best regards,
Prithis I