xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.64k stars 1.88k forks source link

[Bug] In .Net 8 MAUI VisibleViews property of CarouselView is not working #15881

Closed AmanGoyal009 closed 2 months ago

AmanGoyal009 commented 2 months ago

Description

In .Net 8 MAUI we are trying to get the current view using VisibleViews property. But we are getting an empty list everytime. Even though items are visible in the Carousel View and user can properly interact with the UI also.

Steps to Reproduce

  1. Create one Carousel View in the XAML File.
  2. Create one Submit Button.
  3. Once data is visible inside Carousel View click on the submit button and try to access the VisibleViews property. It will give empty collection.

Expected Behavior

It should give the value. It's working in .Net 7.

Basic Information

Environment

Show/Hide Visual Studio info ```
AmanGoyal009 commented 2 months ago

Hello @radical , @shanselman, @michaeldwan , @paulbatum Can you guys please help me in this. As I am stuck due to this issue.

jfversluis commented 2 months ago

This repository is for Xamarin.Forms. Please find the .NET MAUI repository here: https://github.com/dotnet/maui