Skip to content

PasswordBox Reveal and Clear icon size, need help. #3573

Closed Answered by Keboo
DreadShape asked this question in Q&A
Discussion options

You must be logged in to vote

At present there is not a simple way to do it. However, you can setup a style that will apply to all inner PackIcons and manipulate their size that way. Something like this (using the demo app as an example).

<PasswordBox materialDesign:HintAssist.HelperText="Bound to Password2"
              materialDesign:HintAssist.Hint="Password"
              materialDesign:PasswordBoxAssist.Password="{Binding Password2, Mode=TwoWay}"
              materialDesign:TextFieldAssist.HasClearButton="True"
              IsEnabled="{Binding ElementName=RevealPasswordFloatingEnabled, Path=IsChecked}"
              Style="{StaticResource MaterialDesignFloatingHintRevealPasswordBox}">
  <PasswordBox.Resources>…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DreadShape
Comment options

Answer selected by DreadShape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants