Skip to content
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

VisualState Setters not working properly on Windows for a CollectionView #22104

Open
KeithBoynton opened this issue Apr 28, 2024 · 1 comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@KeithBoynton
Copy link

Description

The visual states are not functioning correctly when inside at a CollectionView's DataTemplate on Windows.

If VisualState setters are defined then firstly the elements are not displayed correctly on initial render and then the visual state isn't changed when an item is selected.

This happens only on Windows, it is working correctly on iOS, MacCatalyst and Android.

Android

image

Windows

image

Steps to Reproduce

  1. Clone the attached project
  2. Run the solution on MacCatalyst
  3. Observe the Items are initially rendered correctly
  4. Click the Select Next button and observe the items being selected correctly with a Red background
  5. Do the same on iOS and observe it working correctly
  6. Do the same on Android and observe it working correctly
  7. Run the solution on Windows
  8. Observe the items not getting rendered correctly initially and also not when items are selected

Link to public reproduction project repository

https://bitbucket.org/KeithBoynton/collection-view-selection-highlight/src/master/

Version with bug

8.0.21 SR4.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

@KeithBoynton KeithBoynton added the t/bug Something isn't working label Apr 28, 2024
@kevinxufei kevinxufei added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed platform/windows 🪟 labels Apr 28, 2024
@kevinxufei
Copy link
Collaborator

Verified this issue with Visual Studio 17.10.0 Preview 5(8.0.21/8.0.7). Can repro on windows platform with sample project.

@Eilon Eilon added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants