Skip to content

Conversation

@nicolaihenriksen
Copy link
Contributor

@nicolaihenriksen nicolaihenriksen commented Sep 20, 2022

Fix for issue mentioned here.

Setting VerticalAlignment=Center to align with PART_ClearButton (default value).

This threw me off initially, because the demo application overrides the style for PackIcon in Fields.xaml, and explicitly sets VerticalAlignment=Center. The default however is Top, which is not correct. Instead of changing it directly on the PackIcon style - which potentially is a bit too intrusive - I simply apply it directly on the PackIcon instance used in the reveal button.

Also, the HorizontalAlignment being removed was a leftover from earlier, and is no longer needed.

Setting to "Center" to align with PART_ClearButton. This threw me off, because the demo application overrides the style for PackIcon in Fields.xaml and explicitly sets VerticalAlignment=Center. The default however is Top, which is not correct. Instead of changing it directly on the PackIcon - which potentially is a bit too intrusive - I simply apply it directly on the PackIcon used in the reveal button.
@Keboo Keboo added this to the 4.6.1 milestone Sep 22, 2022
@Keboo Keboo merged commit 6a140df into MaterialDesignInXAML:master Sep 22, 2022
@nicolaihenriksen nicolaihenriksen deleted the pwdRevealButtonAlignment branch September 22, 2022 08:07
@Keboo Keboo added the release notes Items are likely to be highlighted in the release notes. label Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants