lepoco / lepoco/wpfui

Close button flickers on hover and sometimes cannot be clicked of Window

Open
#1,647 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:star: top bug bug
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
  1. Create a new project
  2. Select WPF UI – Fluent Navigation template
  3. Place the attached XAML and C# files under:
    Views / Windows

TestWindow.zip

  1. Add the following method to SettingsViewModel.cs:
[RelayCommand]
private void OnTestWindow()
{
    var testWindow = new Views.Windows.TestWindow()
    {
        Owner = App.Current.MainWindow
    };
    testWindow.ShowDialog();
}
  1. Run the application
  2. Click the Settings button
  3. Click the Test Window button
  4. 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.

UiDesktopApp3.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.