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

Set expand to SfNumbericTextBox, but not the underline

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" />
            </StackLayout>
```

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" />
            </StackLayout>
```

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.

Cheers.


1 Reply

LR Lakshmi Radha Krishnan Syncfusion Team 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>

 

        <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>

 

        <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"/>

        </StackLayout>

 

</StackLayout>

 

 

Screenshot:

 

 


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.

 

Regards,

Lakshmi R.



Loader.
Live Chat Icon For mobile
Up arrow icon