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

Resizing segmented Control

Thread ID:





147322 Sep 6,2019 03:42 AM UTC Sep 9,2019 01:31 PM UTC Xamarin.Forms 3
Tags: SfSegmentedControl
Asked On September 6, 2019 03:42 AM UTC

I am unable to resize my segmented control.

this is my code

The element structure to the segment control is as such

ContentPage.Content > Grid >  StackLayout > tabview:SfTabView > tabview:SfTabItem > tabview:SfTabItem.Content > Stacklayout > border:SfBorder(HeightRequest="500" WidthRequest="450" Margin="20") > border:SfBorder.Content > Scrollview > Grid > Stacklayout > Stacklayout(WidthRequest="50" HeightRequest="20") > buttons:SfSegmentedControl

Muneesh Kumar G [Syncfusion]
Replied On September 6, 2019 12:26 PM UTC

Hi Benjamin, 
Greetings from Syncfusion.  
We have analyzed your requirement and we would like to inform you that the Stack layout children are fill and expand by default if we not specified the Horizontal and vertical options.  
We can resize the segmented control inside the stack by specifying the Horizontal and vertical option along with Width and Height request by below. 
                <border:SfBorder  WidthRequest="450" HeightRequest="500"> 
                        <buttons:SfSegmentedControl HorizontalOptions="Start" VerticalOptions=" Start"  HeightRequest="150" WidthRequest="200" 
                            <sys:List x:TypeArguments="x:String"> 
Please let us know if you have any other queries.  
Muneesh Kumar G 

Replied On September 9, 2019 02:23 AM UTC

Thanks alot for your assistance. i am able to fixed my issue following your suggestion.

Saravanan Madheswaran [Syncfusion]
Replied On September 9, 2019 01:31 PM UTC

Hi Benjamin, 
Thanks for your update, we always happy to help you.  


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