Skip to content

Commit 6a140df

Browse files
Set vertical alignment of reveal button (#2873)
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.
1 parent 65c80da commit 6a140df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PasswordBox.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@
632632
<wpf:PackIcon
633633
x:Name="RevealPasswordIcon"
634634
Foreground="{Binding ElementName=PART_ClearButton, Path=Foreground}"
635-
HorizontalAlignment="Right" />
635+
VerticalAlignment="Center" />
636636
</ToggleButton>
637637
<Button
638638
x:Name="PART_ClearButton"

0 commit comments

Comments
 (0)