MaterialDesignInXamlToolkit
MaterialDesignInXamlToolkit copied to clipboard
PasswordBox - Set vertical alignment of reveal button
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.