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

Add AP to control SmartHint resting position #3502

Merged
merged 4 commits into from
Mar 28, 2024
Merged

Add AP to control SmartHint resting position #3502

merged 4 commits into from
Mar 28, 2024

Conversation

nicolaihenriksen
Copy link
Contributor

@nicolaihenriksen nicolaihenriksen commented Mar 25, 2024

Fixes #3460

This PR adds an opt-in feature for the SmartHint to control the HorizontalAlignment of the hint in the resting position as requested in the issue above.

This will conflict with my PR for refactoring the SmartHint positioning, but it shouldn't be too much of an issue to merge/rebase it and let the new scheme respect this new AP.

Animations below slowed down for demonstration purposes.

I wanted to add a UI test for this, but my attempts turned out too fragile IMO, so I left it out. Basically the horizontal positioning of the hint is controlled using the Margin (left) property of the ContentControl containing the hint. This PR does not change that fact, it simply takes the new AP into account in the calculation of the left margin.

Rest = Left, Float = Inherit

image
SmartHint1

Rest = Center, Float = Inherit

image
SmartHint2

Rest = Right, Float = Inherit

image
SmartHint3

@Keboo Keboo added this to the 5.1.0 milestone Mar 28, 2024
@Keboo Keboo added enhancement release notes Items are likely to be highlighted in the release notes. labels Mar 28, 2024
@Keboo Keboo merged commit b354022 into master Mar 28, 2024
2 checks passed
@Keboo Keboo deleted the enhancement3460 branch March 28, 2024 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement release notes Items are likely to be highlighted in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add access to SmartHint of TextBox, PasswordBox etc (place holder text) for set HorizontalAlignment
2 participants