lepoco / lepoco/wpfui

Icons and the X on TextBox and PasswordBox should stay on their respective sides when HorizontalContentAlignment is set to Center

Open
#547 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe

When I add a WPFUI Textbox or PasswordBox, and set the HorizontalContentAlignment to be centered, any icon chose moves to the center as well. So does the X that clears the box.

Describe the solution you'd like

I would like the icons and clearing X to stay on their respective sides.

Describe alternatives you've considered

Using a default Textbox/PasswordBox.

Additional context

I'll admit that to me this is just an aesthetic thing. Just feels weird having those move as I type in the respective boxes.

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

Start by reproducing the issue in the WPFUI TextBox and PasswordBox with HorizontalContentAlignment set to Center. Inspect the controls' templates and layout behavior for the icon and clearing X. Done means both remain on their respective sides while the text is centered, without changing default TextBox or PasswordBox behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.