maui icon indicating copy to clipboard operation
maui copied to clipboard

CarouselView inside of one of DataTemplates in DataTemplateSelector results in random DataTemplates in Windows

Open MissedSte4k opened this issue 3 years ago • 2 comments
trafficstars

Description

I have DataTemplateSelector with 2 options.

  1. is if there is only one image in a list - display that image only.
  2. if there is more than one image in a list - display all of the images in CarouselView.

To test it - every 5 seconds I add an Animal class object with 3 dog images; and an Animal class object with 1 cat image.

Seems easy enough. I created the project and everything works fine on Android. But on Windows - it seems like a random UI generator.

As far as I looked - I saw these options:

  1. Dog images in CarouselView

  2. Single Cat image image

  3. Cat images in CarouselView (no idea how) image

  4. Single Dog image (no idea how) image

  5. Top ~20 pixels of Cat image(s) image

  6. Top ~20 pixels of Dog image(s) image

Steps to Reproduce

  1. Download and extract the files TestImages.zip

  2. Launch the app on Windows platform

  3. Wait and enjoy the random UI

Version with bug

6.0.400

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.22000.194

Did you find any workaround?

No response

Relevant log output

No response

MissedSte4k avatar Jul 18 '22 13:07 MissedSte4k

It seems, that similar issue also happens in iOS. Single cat images are displayed usually somewhat correct (sometimes with sizeing problems), but CarouselView is not displayed at all. For testing, you can reuse the same sample

MissedSte4k avatar Jul 25 '22 10:07 MissedSte4k

Any update on this issue? This seems like basic functionality that is completely broken in Windows.

mlancione avatar Oct 28 '22 04:10 mlancione

Verified this on Visual Studio Enterprise 17.7.0 Preview 1.0. Repro on Windows 11 and iOS 16.4, not repro on Android 13.0. 8811.zip

Windows: CatDog iOS: image

XamlTest avatar May 23 '23 08:05 XamlTest

Got the same issue in my project

SliemBeji-FBC avatar Oct 18 '23 10:10 SliemBeji-FBC