Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ColorPickerButton change color causes TextAlignment to be incorrectly displayed in a TextBlock #647

Open
renrutsirhc opened this issue Feb 2, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@renrutsirhc
Copy link

Describe the bug
A clear and concise description of what the bug is and any steps to reproduce it. Sample code or a minimal repro is helpful.

To repro
A ColorPickerButton bound to a property FontColor on VM.
A TextBlock with Foreground bound to an Observable returning a SolidColorBrush of FontColor
The TextBlock has TextAlign = Right
Changing the color using the ColorPickerButton causes the TextBox to appear Left Aligned.

Screenshots
If applicable, add screenshots to help explain your problem.

Screen.Recording.2025-02-02.165746.mp4

Desktop/Platform (please complete the following information):

  • OS: [e.g. Windows (11/10), linux (distro), osx, wasm, etc] - Windows 11
  • FluentAvalonia Version [e.g. 1.0.0, or latest] - latest
  • Avalonia Version [e.g. 0.10.10] - 11.2.3

Additional context
Add any other context about the problem here.

@renrutsirhc renrutsirhc added the bug Something isn't working label Feb 2, 2025
@renrutsirhc
Copy link
Author

TextAlignmentRepro.zip
Minimal Repro here.

@renrutsirhc
Copy link
Author

Seems like this might be an upstream issue in Avalonia.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant