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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Resizing segmented Control

Thread ID:

Created:

Updated:

Platform:

Replies:

147322 Sep 6,2019 03:42 AM UTC Sep 9,2019 01:31 PM UTC Xamarin.Forms 3
loading
Tags: SfSegmentedControl
Benjamin
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"> 
                    <StackLayout> 
                        <buttons:SfSegmentedControl HorizontalOptions="Start" VerticalOptions=" Start"  HeightRequest="150" WidthRequest="200" 
                                                    BorderColor="#3F3F3F" 
                                                    FontColor="Black" 
                                                    CornerRadius="5" 
                                                    SegmentCornerRadius="5" 
                                                    SegmentHeight="40" 
                                                    Color="LightBlue" 
                                                    SelectionTextColor="#02A0AE"> 
                            <sys:List x:TypeArguments="x:String"> 
                                <x:String>Hide</x:String> 
                                <x:String>Show</x:String> 
                            </sys:List> 
                        </buttons:SfSegmentedControl> 
                    </StackLayout> 
                </border:SfBorder> 
 
 
 
Please let us know if you have any other queries.  
 
Thanks, 
Muneesh Kumar G 
 


Benjamin
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.  
 
Regards, 
Saravanan.  


CONFIRMATION

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