Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi There,

It seems that the SfTreeView displays irregular behaviour when it comes to rendering item templates. I have the following data template:

<DataTemplate x:Key="arrivalPredictionTemplate">
                <ViewCell>
                    <ViewCell.View>
                        <Grid>
                            <Frame CornerRadius="10" Padding="10" Margin="0,5,5,5" IsClippedToBounds="True" BorderColor="Transparent" BackgroundColor="White">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <Label Grid.Row="0" Grid.Column="0" FontSize="Micro" TextColor="#03B5FF" Text="{Binding Destination}" LineBreakMode="WordWrap"/>
                                    <Label Grid.Row="1" Grid.Column="0" FontSize="Micro" TextColor="Black" Text="{Binding CurrentLocation, StringFormat='Currently at: {0}'}" LineBreakMode="WordWrap"/>
                                    <Label Grid.Row="2" Grid.Column="0" FontSize="Micro" TextColor="#03B5FF" Text="{Binding ExpectedArrivalMinutesText}"/>
                                </Grid>
                            </Frame>
                        </Grid>
                    </ViewCell.View>
                </ViewCell>
            </DataTemplate>

However the CurrentLocation sometimes gets displayed fully and sometimes its cut off and does not render on a new line. I've set the row height to * so it should display on a new line. I have attached the screen show which displays the problem in effect. If you look at the row highlighted in grey - the current location reads "Currently at: Between Willesden Junction and". It is being cut off here.

Please can you advise on how to resolve this issue. Again I will mention that sometimes it does render correctly and other times it will render incorrectly on the same refresh. Please help. Thanks in advance !