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

Resizing segmented Control

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

3 Replies

MK Muneesh Kumar G Syncfusion Team 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 

BE Benjamin September 9, 2019 02:23 AM UTC

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

SM Saravanan Madheswaran Syncfusion Team September 9, 2019 01:31 PM UTC

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

Live Chat Icon For mobile
Up arrow icon