I've implemented SfSegmentedControl on my page using Xamarin. In the Android version, SfSegmentedControl is working perfectly, the text is remain in center after switch between tab. But in the IOS version, the text is not centered anymore after switch between tab, it move to the left and top. This is the screenshot of my SfSegmentedControl on IOS.
This is when i open it for the first time, the text is centered correctly.
This is after i switch to another tab.
Below is my code that i implemented on xaml,
<StackLayout Grid.Row="1">
<buttons:SfSegmentedControl
Style="{StaticResource SimpleSegmentedControlStyle}"
SelectedIndex="{Binding PosActiveCtg}"
SegmentHeight="{extension:OnScreenSize DefaultSize=32, ExtraSmall=30, Small=32, Medium=32, Middle=32, Large=38, ExtraLarge=38}"
ItemsSource="{Binding ItemCollection,Mode=TwoWay}">
<buttons:SfSegmentedControl.Behaviors>
<behaviors:EventToCommandBehavior EventName="SelectionChanged" Command="{Binding SelectionChangedCommand}" />
</buttons:SfSegmentedControl.Behaviors>
</buttons:SfSegmentedControl>
<BoxView Style="{StaticResource HorizontalSeparatorStyle}" Color="{DynamicResource Gray-Base}"/>
</StackLayout>