HandyOrg / HandyOrg/HandyControl

鼠标悬停在带 ShowClearButton 的 TextBox 的边缘时发生闪烁

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

Nobody has claimed this yet.

:ok_hand: accepted
Dominant language
C#
Stars
7.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

移动鼠标指针到 hc:TextBox 的边缘(靠近 Clear 按钮处),发现 ClearButton 快速闪烁。
这个问题有些控件可以通过设置 UseLayoutRounding=False 来解决,但是这个方法对 hc:TextBox 无效。

动画

更新

我发现官方 Demo 也会有这个问题。

动画2

Steps to reproduce the bug
<hc:TextBox hc:InfoElement.ShowClearButton="True" Text="1234567890"/>
Expected behavior

No response

Screenshots

No response

NuGet package version

HandyControl 3.4.0

IDE

Visual Studio 2022

Framework type

.Net 6.0

Windows version

Windows 11 (22000)

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

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

Start with the hc:TextBox and hc:InfoElement.ShowClearButton="True" reproduction shown in the issue, then inspect the control's hover and ClearButton behavior in the official demo. Done means moving the pointer near the TextBox edge no longer causes the ClearButton to flicker under HandyControl 3.4.0 on the reported WPF setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.