CommunityToolkit / CommunityToolkit/Windows

Implicit animations don't work when used inside a ListView or GridView's item template.

Open
#217 6 comments 1 reaction 0 assignees View on GitHub
bug components::animations
Dominant language
C#
Stars
1.1k
Forks
166
PR merge metrics
No merged PRs in 30d

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.