UWP exception NaN is not a valid value for height

    I have sfrating within the sflistview datatemplate and it throws below exception on UWP local. it works fine in Android. I am using both sflistview and sfrating as 16.2.042

 <sfListView:SfListView.ItemTemplate>
  <DataTemplate>
                                    <Frame  OutlineColor="Silver" HasShadow="True" InputTransparent="True" Margin="5,2" Padding="1" BackgroundColor="Transparent" HorizontalOptions="FillAndExpand">
                                        <Grid  VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"  Padding="10" >
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="3*"></ColumnDefinition>
                                                <ColumnDefinition Width="*"></ColumnDefinition>
                                                <ColumnDefinition Width="*"></ColumnDefinition>
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="*"></RowDefinition>
                                            </Grid.RowDefinitions>
    <StackLayout Orientation="Vertical"   Grid.Column="0" HorizontalOptions="FillAndExpand">

                                                <Label Text="{Binding name}" Margin="2,0"  TextColor="Black" Style="{StaticResource NameStyle}" />
                                               
                                                <StackLayout Orientation="Horizontal" Spacing="0">
                                                    <rating:SfRating x:Name="rating"  Style="{StaticResource ratingSyle}"                                       
                                                         Value="{Binding Rating}" Precision="Half" />

                                                    <Label HorizontalOptions="StartAndExpand"  FontSize="Micro"   TextColor="Gray" >
                                                        <Label.FormattedText>
                                                            <FormattedString>
                                                                <FormattedString.Spans>
                                                                    <Span Text="("  />
                                                                    <Span Text="{Binding TotalUsers}" FontSize="Micro" TextColor="Gray" />
                                                                    <Span Text=")"  />
                                                                </FormattedString.Spans>
                                                            </FormattedString>
                                                        </Label.FormattedText>
                                                    </Label>
                                                </StackLayout>
                                                  
                                            </StackLayout>

                                            <ffimageloadingsvg:SvgCachedImage  
                              Grid.Row="0" Grid.Column="1"  />


                                            <ffimageloadingsvg:SvgCachedImage   
                         Grid.Row="0" Grid.Column="2"  />


                                        </Grid>
                                    </Frame>
                                </DataTemplate>
                            </sfListView:SfListView.ItemTemplate>

Exception = {System.ArgumentException: NaN is not a valid value for height
   at Xamarin.Forms.Platform.UWP.TaskExtensions.<>c.<WatchForError>b__2_1(Object e)
   at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()
   at Windows.ApplicationModel....

4 Replies

EM Emil July 13, 2018 01:50 PM UTC

looks like it only works if set heighrequest but i dont know why it needs be set. previous versions didnt require it


PA Paul Anderson S Syncfusion Team July 16, 2018 11:33 AM UTC

Hi Emil, 
 
Thanks for the update. 
 
We are able to reproduce the reported issue at our end with our latest version and logged a defect report for the same. The fix will be included in our upcoming Volume 2 SP1 release which will be in the end of this month [July 2018]. 
 
Regards, 
Paul Anderson 



PA Paul Anderson S Syncfusion Team July 25, 2018 05:31 AM UTC

 
Hi Emil, 
  
We would like to let you know that due to stability fix will be included in our upcoming Volume 2 SP2 release which will be in the end of August 2018.  
  
Regards,  
Paul Anderson  
 



PA Paul Anderson S Syncfusion Team August 28, 2018 09:37 AM UTC

Hi Emil, 
 
We have created incident for this reported issue. We will assist you through incident under your Direct Trac account. 
Our Direct Trac support system can be accessed from the following link: 
                               
 
Regards, 
Paul Anderson 


Loader.
Up arrow icon