dotnet / dotnet/wpf

Application freezes and becomes unresponsive while using Fluent theme of PresentationFrameWork in .NET 90 project

Open
#10,203 5 comments 1 reaction 1 assignee Claimed by @siagupta0202 View on GitHub
Investigate Win 11 Theming
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

We have updated all our controls to support NET 9.0. When using Fluent theme of PresentationFrameWork, the application freezes and becomes unresponsive within few seconds. The application runs fine while using other themes like Aero, Luna, Classic of PresentationFrameWork. We have previously reported similar issue related to custom themes and already reported in https://github.com/dotnet/wpf/issues/10020 that crashes the application.

Tried the below code as well that was recommended:

The issue is replicating even after using this!

### Reproduction Steps

We’ve attached samples project demonstrating this issue and video reference for Issue replication.

Replication Procedure:

- Run the below sample
- Right click on the search bar of PropertyGrid
- See the application freezes and becomes unreponsive

**Samples:**

Issue replicating sample while using Fluent theme of PresentationFrameWork:
[PropertyGridNet90.zip](https://github.com/user-attachments/files/18239002/PropertyGridNet90.zip)

**Issue replicating videos:**
https://github.com/user-attachments/assets/48cb5069-4dd9-4c03-b566-8349d23854b9

https://github.com/user-attachments/assets/7b4e9b93-f300-4339-aa58-be46f349be0a

### Expected behavior

While right clicking the search bar while using Fluent theme the application should not freeze, and the context menu should be visible.

### Actual behavior

While right clicking the search bar while using Fluent theme the application freezes and closes automatically within few seconds.

### Regression?

_No response_

### Known Workarounds

_No response_

### Impact

_No response_

### Configuration

_No response_

### Other information

_No response_

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.