Break Issue in Net9.0 when using Custom Theme
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
We have updated all our projects to support .NET 9.0. As previously noted, our projects use a custom theme that functions well in .NET 8.0 and other frameworks but has been causing issues specifically in .NET 9.0.
We have logged this issue [#10020](https://github.com/dotnet/wpf/issues/10020) and received the recommendation: *"The issue is due to a recent change to optimize DynamicResource usage (#5610). To prevent the crash, you can opt-out of this behavior by adding the following to your `.csproj` file:*
```xml
```
This solution has resolved the issue in some sample projects. However, we still encounter problems in other cases when using themes:
1. In the `SfScheduler` control, adding an appointment that spans multiple days causes the app to freeze.
2. In `TimeSelector`, switching themes leads to app freezing.
Both cases work without issues in .NET Core 8.0.
**Note:** We have also included `` in the `.NET 9.0` project `ItemGroup`.
We’ve attached sample projects demonstrating this issue and video references for Issue replication.
Could you please investigate further?
[Samples.zip](https://github.com/user-attachments/files/17678716/Samples.zip)
[Video references.zip](https://github.com/user-attachments/files/17678717/Video.references.zip)
Contributor guide
Assessment
This issue has not been assessed yet.