-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET MAUI CarouselView Items Not Visible in Release Mode #19357
Comments
Hi @NimmoLtd. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
We have the same issue with iOS, for us adding a dummy |
Hi @NimmoLtd. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Same exact issue with CollectionView in release mode. <DataTemplate x:DataType="datamodels:MyModel">
<Grid>
<controls:MyControl BindingContext="{Binding .}" />
</Grid>
</DataTemplate> Try with and without the DataType property, that's the only difference that makes it work like you expect. Many thanks to its original contributor (more than one year ago) |
I faced the same issue. @bebenlebricolo comment solved my problem. After adding DataTemplate x:DataType="x:String" to my CarouselView the label became visible. |
Description
I have a CarouselView for displaying an ObservableCollection of type ImageSource.
[ObservableProperty] private ObservableCollection<ImageSource> _workOrderPhotosList = new();
An API call gets said images and adds them to the collection. This works fine in Debug mode with no issue, images are added to the collection and are displayed correctly.
In Release mode however, images are added to the collection but they are invisible. I know they are there as the IndicatorView populates showing either 1 or more dots, and I can swipe to flick through the collection even though there are no images visible.
Can anybody shed some light on why this may be? I am using Compiled Bindings, as indicated at the top of my XAML:
x:DataType="viewModels:WorkOrderDetailsViewModel"
I have ReSharper installed, so IntelliSense is showing me that the CarouselView ItemsSrouce is correctly bound to the WorkOrderDetailsViewModel, with the path WorkOrdersPhotosList
ItemsSource="{Binding (WorkOrderDetailsViewModel). Path=WorkOrderPhotosList}"
Code if call is successful:
XAML for IndicatorView and CarouselView :
Steps to Reproduce
Output
Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 13 - API 33
Did you find any workaround?
#19357 (comment)
Relevant log output
No response
The text was updated successfully, but these errors were encountered: