SfSegmentedControl does not take up horizontal space on the page #89
-
I created a segmented control with three items, containing an icon. The segmented takes up a space that is probably auto-calculated, but I would like it to take up all the available space horizontally. Is it doable? the image is not very clear but, in red, the space not occupied by the segmented |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi Alessandro, Regarding the SfSegmentedControl horizontal fill, you can achieve the UI improvements using ‘VisibleSegmentsCount’ property of ‘SfSegmentedControl’. The layout of segments adjusts automatically once VisibleSegmentsCount is set. Example code snippet: For more detailed information on visible segment count please refer to the following document: If you have any further questions, please don’t hesitate to reach out. Regards, |
Beta Was this translation helpful? Give feedback.
-
We haven’t received any further updates on this discussion in a while. To keep the issue tracker focused and maintainable, we’re closing this thread for now. If you're still experiencing this issue or have additional information to share, please feel free to reopen it or create a new discussion. Thank you for your contribution! |
Beta Was this translation helpful? Give feedback.
-
yes it is solved with VisibleSegmentsCount, |
Beta Was this translation helpful? Give feedback.
Hi Alessandro,
Regarding the SfSegmentedControl horizontal fill, you can achieve the UI improvements using ‘VisibleSegmentsCount’ property of ‘SfSegmentedControl’. The layout of segments adjusts automatically once VisibleSegmentsCount is set.
Example code snippet:
<buttons:SfSegmentedControl x:Name="segmentedControl" HeightRequest="50" HorizontalOptions="Fill" VerticalOptions="Center" VisibleSegmentsCount="3">
For more detailed information on visible segment count please refer to the following document:
Visible-segment-count
If you have any further questions, please don’t hesitate to reach out.
Regards,
SaiGanesh Sakthivel