Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix watermark alignment of TextBox in the Simple theme #5802 #13295

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

mgnslndh
Copy link
Contributor

What does the pull request do?

Adds horizontal and vertical alignment template bindings so that the watermark of the TextBox in the simple theme is not affected by the default TextBlock style.

What is the current behavior?

The TextBox watermark will have the same alignment as the style for a generic TextBlock. See #5802

What is the updated/expected behavior with this PR?

Fix the alignment of TextBox watermarks in the simple theme.

How was the solution implemented (if it's not obvious)?

Two simple TemplateBinding from the Horizontal/VerticalContentAlignment of the TextBox to the watermark TextBlock Horizontal/VerticalAlignment.

Checklist

Unsure if this requires a test case. I've not seen any test cases related to the Simple theme, so please advise if there is a place to add unit tests.

Breaking changes

Probably not.

Fixed issues

Fixes #5802

@maxkatz6 maxkatz6 added this pull request to the merge queue Oct 17, 2023
Merged via the queue into AvaloniaUI:master with commit 050c660 Oct 17, 2023
6 checks passed
@mgnslndh
Copy link
Contributor Author

Please consider adding the "hacktoberfest-accepted" label to this PR.

@maxkatz6 maxkatz6 added hacktoberfest-accepted backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Oct 30, 2023
@maxkatz6 maxkatz6 added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants