[Suggestion] When InfoElement.ShowClearButton is enabled, the Clear button always occupies a fixed width
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with the HandyControl Demo and controls using InfoElement.ShowClearButton, then compare their templates with the referenced FixedHandyControlTextBoxPlusTemplate.xaml, FixedHandyControlSearchBarPlusTemplate.xaml, and FixedHandyControlComboBoxEditableLeftTemplate.xaml files. Done means the Clear button keeps a fixed position when enabled without preventing normal text selection.
Written by the indexing model from the issue text.
Description
Describe the bug
This issue(https://github.com/HandyOrg/HandyControl/issues/1489) has not been resolved. We should set a fixed width for the Clear Button.
Fixed:
- [Fixed width mode] The input box always retains the position of the Clear button. Although the input space is reduced, the layout remains unchanged.
This is my solution:
https://github.com/CodingOctocat/Firefly/blob/master/Firefly/Styles/FixedHandyControlTextBoxPlusTemplate.xaml
https://github.com/CodingOctocat/Firefly/blob/master/Firefly/Styles/FixedHandyControlSearchBarPlusTemplate.xaml
https://github.com/CodingOctocat/Firefly/blob/master/Firefly/Styles/FixedHandyControlComboBoxEditableLeftTemplate.xaml
- [Overlay mode] Another solution is to have the Clear button cover the top, but if the user wants to select text from the right, they will click on the Clear button. So I think [Fixed width mode] is better.
(By the way, This is HandyControls 3.6.0 behavior)
Steps to reproduce the bug
Create a input control with InfoElement.ShowClearButton or see the HandyControl Demo.
Expected behavior
No response
Screenshots
No response
NuGet package version
HandyControl 3.5.1
IDE
Visual Studio 2022
Framework type
.Net 9.0
Windows version
Windows 11 (22000)
Additional context
No response
- Dominant language
- C#
- Stars
- 7.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from HandyOrg/HandyControl
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
HandyOrg/HandyControl#1818 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
HandyOrg/HandyControl#1809 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
HandyOrg/HandyControl#1820 ·
-
不能够独立的引入用户认为需要的部分Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
HandyOrg/HandyControl#1816 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
HandyOrg/HandyControl#1813 ·
All issues in HandyOrg/HandyControl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PCL-Community/PCL-CE#3652 ·
Maintainers usually reply within 1 day
-
area:frontend bug FE P3
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
klasolsson81/jobbliggaren#2010 ·
Maintainers usually reply within 1 day
-
agentic-workflows untriaged
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
area: homeblaze type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
RicoSuter/Namotion.Interceptor#630 ·
Maintainers usually reply within 1 day
-
Akka.Hosting enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100