Skip to content

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

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

3 participants