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

feat(NumericUpDown): TextAlignment #12368

Conversation

workgroupengineering
Copy link
Contributor

What does the pull request do?

Add TextAlignment property to NumericUpDown

What is the current behavior?

It doesn't have the TextAlignment property. To change the alignment you need to create a style selector like this:

    <Style Selector="NumericUpDown /template/ TextBox#PART_TextBox">
      <Setter Property="TextAlignment" Value="Right"/>
    </Style>

This solution has the disadvantage of strictly depending on the theme used.

What is the updated/expected behavior with this PR?

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

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes #12367

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0038213-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Jul 31, 2023
Merged via the queue into AvaloniaUI:master with commit 80223e4 Jul 31, 2023
@workgroupengineering workgroupengineering deleted the features/Controls/NumericUpDown/TextAlignment branch July 31, 2023 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NumericUpDown TextAlignment
3 participants