- Home
- Forum
- Xamarin.Forms
- Resizing segmented Control
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
SIGN IN To post a reply.
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">
<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
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.
Regards,
Saravanan.
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
BE Benjamin
- Sep 6, 2019 03:42 AM UTC
- Sep 9, 2019 01:31 PM UTC