CommunityToolkit / CommunityToolkit/Windows
Implicit animations don't work when used inside a ListView or GridView's item template.
- Vorherrschende Sprache
- C#
- Sterne
- 1.1k
- Forks
- 166
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Describe the bug
Implicit animations do not work when being used from inside a data template of a listview or gridview item.
### Regression
_No response_
### Reproducible in sample app?
- [ ] This bug can be reproduced in the sample app.
### Steps to reproduce
```text
1. Download this solution: https://1drv.ms/u/s!Ar4RhL72OhUDz5MbXWHxhSYT8Dc_VA?e=kLKDqk
2. Run the app
3. Press the button in the listview to toggle visibility of a textblock inside that listview item
4. Observe the text appears without any animation, even though the code clearly shows that there's supposed to be an implication show animation
```
### Expected behavior
The implicit animation should work while inside the listview item.
### Screenshots
_No response_
### Windows Build Number
- [ ] Windows 10 1809 (Build 17763)
- [ ] Windows 10 1903 (Build 18362)
- [ ] Windows 10 1909 (Build 18363)
- [ ] Windows 10 2004 (Build 19041)
- [ ] Windows 10 20H2 (Build 19042)
- [ ] Windows 10 21H1 (Build 19043)
- [X] Windows 11 21H2 (Build 22000)
- [ ] Other (specify)
### Other Windows Build number
_No response_
### App minimum and target SDK version
- [ ] Windows 10, version 1809 (Build 17763)
- [ ] Windows 10, version 1903 (Build 18362)
- [ ] Windows 10, version 1909 (Build 18363)
- [X] Windows 10, version 2004 (Build 19041)
- [ ] Other (specify)
### Other SDK version
_No response_
### Visual Studio Version
2022
### Visual Studio Build Number
17.6.5
### Device form factor
Desktop
### Nuget packages
See the solution provided in the repro steps.
### Additional context
_No response_
### Help us help you
Yes, I'd like to be assigned to work on this item.
Beitragsleitfaden
Rechercherichtung
Lade zunächst die in den Reproduktionsschritten verlinkte Lösung herunter und führe sie aus. Untersuche anschließend das Elementtemplate von ListView oder GridView sowie die Schaltfläche, die die Sichtbarkeit von TextBlock umschaltet. Reproduziere die fehlende implizite Einblendanimation und bestätige die Korrektur, indem du die Animation innerhalb eines Listenelements beobachtest.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- desktop, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 28/100