We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set expand to SfNumbericTextBox, but not the underline

Thread ID:





149699 Dec 5,2019 10:56 PM UTC Dec 6,2019 08:48 AM UTC Xamarin.Forms 1
Tags: SfNumericTextBox
Shaw Yu
Asked On December 5, 2019 10:56 PM UTC

Hi, just check some odd things there.

The underline of the control is supposed to expand like this:
            <StackLayout Orientation="Vertical">
                <syncfusion:SfNumericTextBox FormatString="c" Value="123" />

Then I made the StackLayout's orientation horizontal to put some other controls in the line.
but the underline of the control was squeezed even I set it to Expand.
            <StackLayout Orientation="Horizontal">
                <syncfusion:SfNumericTextBox FormatString="c" HorizontalOptions="CenterAndExpand" Value="123" />

I mean, the control did expand, but not the underline, is it supposed to be like this?
I got a workaround to put in a grid, so just confirm.


Lakshmi Radha Krishnan [Syncfusion]
Replied On December 6, 2019 08:48 AM UTC

Hi Shaw Yu,


Greetings from Syncfusion.


We have prepared a simple sample using the provided code snippet. The HorizontalOptions are applied properly. We checked with SfNumericTextBox and also with Entry, both are behaving same. Please check the screenshot and code snippet.


Code Snippet:





        <StackLayout Orientation="Horizontal">

             <syncfusion:SfNumericTextBox FormatString="c" BackgroundColor="Aqua" HeightRequest="100" HorizontalOptions="CenterAndExpand" Value="123" />

             <Label Text="Label1" BackgroundColor="Aqua" HeightRequest="50"/>

            <Label Text="Label2" BackgroundColor="Aqua" HeightRequest="50"/>



        <StackLayout Orientation="Horizontal">

            <Entry HeightRequest="100" BackgroundColor="Aqua" HorizontalOptions="CenterAndExpand" Text="Entry" />

            <Label Text="Label1" BackgroundColor="Aqua" HeightRequest="50"/>

            <Label Text="Label2" BackgroundColor="Aqua" HeightRequest="50"/>









Sample: https://www.syncfusion.com/downloads/support/forum/149699/ze/NumericTextBox_Horizontal-753406596.zip


If you are configuring anything different from the above, please revert us by modifying the sample to reproduce the issue, also please provide the issue screenshot if possible.



Lakshmi R.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon