lepoco / lepoco/wpfui

Several controls, including RadioButton and CheckBox don't align right when setting FlowDirection to RightToLeft

Open
#377 0 comments 0 reactions 1 assignee View on GitHub

@pomianowski is already working on this.

Since Sep 4, 2022.

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

Description

Describe the bug
I needed the checks to be on the right side of the label
image

which usually is achievable by simply changing the flow direction to RightToLeft. But with the WPF UI style, instead of the label and check swapping position, the check stays in place and the label jumps to the other side, which results in misalignment.
image

Removing the style shows what it should look like
image

To Reproduce
Place a bunch of radio buttons in a vertical stack panel, set their HorizontalAlignment to Right, and their FlowDirection to RightToLeft.

Expected behavior
image

Screenshots
image

And I can't correct it by putting them in a grid instead and moving them manually, because their size changes depending on the position of the other radio buttons 🤔

I'm using radio buttons with the toggle button style as a workaround for now.
image

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.