BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
SfListView EmptyView work well in debug mode but not work in release mode.
it's debug mode display:
it's release mode display:
xaml code:
Hi Leiurayer,
We have checked the reported query “SfListView EmptyView don't show binding property in release mode”, we are unable to reproduce the issue at our end. We have checked the EmptyView with EmptyViewTemplate in both debug and release mode , which is working fine at our end. EmptyView is object can be set to a string or view . we have attached the sample for your reference.
if possible, please modified the sample or share the below details to replicate the reported scenario on our end. It will be more helpful for us to provide a timely solution.
Regards,
Suthi Yuvaraj.
Hi Leiurayer,
Please find the attachment in this update.
Regards,
Suthi Yuvaraj
The template you provided still doesn't work in my project. But I found the solution, adding the source while binding does the trick.
I think it might be the reason of CommunityToolkit.Mvvm.
xaml:
<sflistview:SfListView.EmptyViewTemplate>
<DataTemplate>
<VerticalStackLayout
HorizontalOptions="CenterAndExpand"
Spacing="16"
VerticalOptions="CenterAndExpand">
<Image
HeightRequest="48"
Source="empty_dashboard.png"
WidthRequest="48" />
<Label Text="{Binding EmptyView, Source={x:Reference listView}}" />
</VerticalStackLayout>
</DataTemplate>
</sflistview:SfListView.EmptyViewTemplate>
Leiurayer,
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help.