Welcome to the .NET MAUI feedback portal. We’re happy you’re here! If you have feedback on how to improve the .NET MAUI, 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

While using the CollectionView control from MAUI, I saw that it offers an EmptyView property. This content is shown, when the items count is 0.


<CollectionView ItemsSource="{Binding Events}">

                <CollectionView.EmptyView>
                    <Label Text="No Logs Found"
                           HorizontalOptions="FillAndExpand"
                           HorizontalTextAlignment="Center"
                           VerticalOptions="FillAndExpand"
                           VerticalTextAlignment="Center" />
                </CollectionView.EmptyView>

                <CollectionView.ItemTemplate>
                    <DataTemplate x:DataType="sample:ShinyEvent">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="4*" />
                                <ColumnDefinition Width="1*" />
                            </Grid.ColumnDefinitions>

                            <Label Text="{Binding Text}"
                                   FontSize="Title"
                                   Grid.Column="0"
                                   Grid.Row="0" />

                            <Label Text="{Binding Detail}"
                                   FontSize="Subtitle"
                                   Grid.ColumnSpan="2"
                                   Grid.Row="1" />

                            <Label Text="{Binding Timestamp, StringFormat='{0:MMMM dd h:mm tt}'}"
                                   Grid.Column="1"
                                   Grid.Row="0" />
                        </Grid>
                    </DataTemplate>
                </CollectionView.ItemTemplate>
            </CollectionView>

I would love to see a similar feature for the SfListView.


Best,

Andreas