UI.WPF.Modern icon indicating copy to clipboard operation
UI.WPF.Modern copied to clipboard

[BUG] Using TextAlignment="Right" inside the TextBox effecting the text alignment inside the context menu

Open GID0317 opened this issue 6 months ago • 2 comments

Describe the bug

Bug: Image

What should it look like WinUI: Image

Current: Image

Reproduction

Use TextAlignment="Right" inside the TextBox > Right click > Text Bugged

Example code:

<TextBox
                                x:Name="gitCloneTextBox"
                                Margin="0,0,-5,0"
                                FontFamily="Consolas"
                                IsReadOnly="True"
                                BorderThickness="0"
                                Background="Transparent" 
                                IsReadOnlyCaretVisible="False"
                                Foreground="{DynamicResource {x:Static ui:ThemeKeys.TextFillColorSecondaryBrushKey}}" 

                                TextAlignment="Right"  //Bug Maker

                                VerticalAlignment="Center"
                                VerticalContentAlignment="Center"/>

Suggested Solution

No response

Library Version

0.10.1

Operating System

Windows 11

Framework

.NET Framework

Framework Version

6.0

Source of Package

Self-Compiled

Additional Notes

No response

Validations

  • [x] Check that there isn't already an issue that reports the same or similar problem.
  • [x] Check that this is a bug in the library that should be fixed, not a feature, also this is not about the documentation. (Or please choose the right repo and template.)
  • [x] This is one single problem, or a few problems with the same cause. (If you want to report multiple problems, please create one issue for every single problem.)
  • [x] You've checked that this problem still exists in the latest version. (Keep in mind that we don't provide any support for old versions.)
  • [x] You know that we can't guarantee that we will satisfy your request. This is not really our duty to do everything anyone asks for. Also, you will treat our staff, contributors, and other users with respect and kindness.
  • [x] You're sure there's something wrong with the library itself, not how you're using it. (If you are having issues using it and need help, please go to discussion.)

GID0317 avatar Jun 22 '25 10:06 GID0317

Hey @GID0317 , can u see if #278 work for your use case?

mou-haz avatar Jul 01 '25 19:07 mou-haz

Great work, its fixed the issue on my case

GID0317 avatar Jul 02 '25 03:07 GID0317