XFSegmentedControl
XFSegmentedControl copied to clipboard
UI shows nothing with Material visual (XF 4.8.0.1269)
The following code is showing nothing under XF 4.8.0.1269 when using Visual=Material in the ContentPage
Tested under API30, 29 and on an S8+ (API28) - same result on all
<StackLayout VerticalOptions="End" Padding="12" HorizontalOptions="Center" Grid.Row="1"> <Grid ColumnDefinitions="10*,80*,10*" RowDefinitions="Auto"> <!--<Frame HasShadow="True" Padding="8" BackgroundColor="White" HeightRequest="60" HorizontalOptions="Fill" Grid.Column="1" Grid.Row="0">--> <xfsegmentedcontrol:SegmentedControl BackgroundColor="AntiqueWhite" VerticalOptions="Fill" HorizontalOptions="Fill" x:Name="SegmentedControl1" PrimaryColor="White" SecondaryColor="Black" SelectedTabIndex="1" HeightRequest="48" Grid.Column="1" Grid.Row="0" SelectedTabIndexChanged="SegmentedControl1_SelectedTabIndexChanged" TabButtonsSource="{Binding TabTitles}"> <xfsegmentedcontrol:SegmentedControl.Padding> <OnPlatform x:TypeArguments="Thickness"> <On Platform="Android" Value="0" /> <On Platform="iOS" Value="10,0,10,10" /> </OnPlatform> </xfsegmentedcontrol:SegmentedControl.Padding> </xfsegmentedcontrol:SegmentedControl> <!--</Frame>--> </Grid> </StackLayout>