Close button flickers on hover and sometimes cannot be clicked of Window
Author: Koichi-KobayashiCreated Jan 15, 2026Updated Sep 17, 2026
Labelsbug:star: top bug
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.
Source: lepoco/wpfui