Close button flickers on hover and sometimes cannot be clicked of Window
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
https://github.com/user-attachments/assets/4b40b8c8-007f-436a-bc98-c45661cece27
The issue can now be consistently reproduced.
When hovering the mouse cursor near the close button (top-right corner) of the window, the button flickers and sometimes becomes unclickable, as shown in the attached video.
To Reproduce
- Create a new project
- Select WPF UI – Fluent Navigation template
- Place the attached XAML and C# files under:
Views / Windows
- Add the following method to SettingsViewModel.cs:
[RelayCommand]
private void OnTestWindow()
{
var testWindow = new Views.Windows.TestWindow()
{
Owner = App.Current.MainWindow
};
testWindow.ShowDialog();
}
- Run the application
- Click the Settings button
- Click the Test Window button
- When the window appears, move the mouse cursor near the close button
Expected behavior
- The close button should remain stable on hover
- The button should always be clickable
Screenshots
No response
OS version
Windows 11 Pro
.NET version
.NET 10
WPF-UI NuGet version
4.1.0 - 4.2.0
Additional context
If it helps, I can upload the full project files for investigation.
Please let me know if that would be useful.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the flicker using the WPF UI – Fluent Navigation template, the attached TestWindow files under Views/Windows, and the SettingsViewModel.cs command. Start by running the provided reproduction project on Windows 11 with WPF-UI 4.1.0–4.2.0; done means the close button remains stable near hover and is always clickable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100