.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
Add IconTintColorBehavior to an image in a page, then navigate to and from this page using standard shell navigation. Change the theme of the app/system. If you then navigate from the image page using tab navigation, the IconTintColorBehavior will throw an exception.
Clone this repo: https://github.com/KillswitchPrime/IconTintColorBehaviorBug
1. Run project in emulator OR physical device
2. Select "First Group" or "Second Group"
3. Click "Theme" on bottom tab
4. Change theme
5. Click "Main" on bottom tab
6. Click Back (system or top left)
7. Click "Theme" on bottom tab
8. Change theme
9. App crashes
Expected behavior
No exception should be thrown, because there is no unexpected logic or behavior from the app.
Screenshots
No response
IDE and version
Rider
IDE version
2024.1 EAP5
Nuget packages
[ ] CommunityToolkit.Common
[ ] CommunityToolkit.Diagnostics
[ ] CommunityToolkit.HighPerformance
[X] CommunityToolkit.Mvvm (aka MVVM Toolkit)
Nuget package version(s)
8.2.2
Additional context
I've only tested this on Android, so I don't know what other platforms are affected.
Describe the bug
Add IconTintColorBehavior to an image in a page, then navigate to and from this page using standard shell navigation. Change the theme of the app/system. If you then navigate from the image page using tab navigation, the IconTintColorBehavior will throw an exception.
Here is a minimum reproducible example repo I have created with more info: https://github.com/KillswitchPrime/IconTintColorBehaviorBug
Regression
No response
Steps to reproduce
Expected behavior
No exception should be thrown, because there is no unexpected logic or behavior from the app.
Screenshots
No response
IDE and version
Rider
IDE version
2024.1 EAP5
Nuget packages
Nuget package version(s)
8.2.2
Additional context
I've only tested this on Android, so I don't know what other platforms are affected.
Help us help you
No, just wanted to report this