Border and text alignment

Hi,
I've recently started using these controls.

On windows, this control leaves a border on the outside even if I set the stroke to transparent.
I've tried clip too, without success.
How can I remove it and align the text on the right?

Image_6412_1699375294930  

The code for this entry is the following:

<sfIn:SfNumericEntry
Value="{Binding ScanFontSize}"
TextColor="Black"
FontSize="28"
WidthRequest="75"
Margin="0, 0, 15, 0"
Stroke="Transparent"
ShowClearButton="False"
AllowNull="False"
Minimum="1"
Maximum="300"
CustomFormat="N0"
LargeChange="10"
SmallChange="5"
UpDownPlacementMode="Hidden">
</sfIn:SfNumericEntry>

Thank you for your time.


1 Reply

BV Brundha Velusamy Syncfusion Team November 8, 2023 11:23 AM UTC

Hi Marco,


Regarding SfNumericEntry's border


Currently, we do not have support for hiding the SfNumericEntry input field's border in .NET MAUI. We have already created a feature request for hiding the border in the SfNumericEntry component. Please find the below links to track the status of the feature implementation.


Feedback link: https://www.syncfusion.com/feedback/47398/provide-support-to-hide-the-border-in-the-sfnumericentry


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.


Regarding SfNumericEntry's text alignment


Currently, we don't have direct API support to change the Horizontal and Vertical text alignments in SfNumericEntry. We have prepared a workaround sample to change the vertical and horizontal text alignment of the SfNumericEntry's input field, as shown in the code snippet below. We have attached the sample for your reference. Please review the attached sample and feel free to reach out if you have any further questions.


Please refer the below code snippet for this:


if (numericEntry != null)

{

    var inputView = numericEntry.Children[0];

    (inputView as Entry).HorizontalTextAlignment = TextAlignment.End;

    (inputView as Entry).VerticalTextAlignment = TextAlignment.Center;

}


We have already created a feature request for HorizontalTextAlignment and VerticalTextAlignment support in .NET MAUI SfNumericEntry control. Please find the below link to track the status of the feature implementation.


Feedback link: https://www.syncfusion.com/feedback/47845/provide-horizontaltextalignment-and-verticaltextalignment-support-for-net-maui


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.


Regards,

Brundha V


Attachment: NumericEntrySample_ca133c17.zip

Loader.
Up arrow icon