Skip to content

How to make revealPasswordButton larger? #15724

Answered by stevemonaco
mkj-stonehill asked this question in Q&A
Discussion options

You must be logged in to vote

The PathIcons have their sizes set locally, so it's much easier to replace the entire style. ie.

<Window.Styles>
  <Style Selector="TextBox.revealPasswordButton[AcceptsReturn=False][IsReadOnly=False]:not(TextBox:empty)">
    <Setter Property="InnerRightContent">
      <Template>
        <ToggleButton Theme="{StaticResource FluentTextBoxToggleButton}"
                      IsChecked="{Binding $parent[TextBox].RevealPassword, Mode=TwoWay}">
          <Panel>
            <PathIcon Data="{StaticResource PasswordBoxRevealButtonData}"
                      Height="36" Width="36"
                      IsVisible="{Binding $parent[ToggleButton].!IsChecked}"/>
            <PathIcon Data="{StaticRes…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@mkj-stonehill
Comment options

@mkj-stonehill
Comment options

@stevemonaco
Comment options

Answer selected by mkj-stonehill
Comment options

You must be logged in to vote
0 replies
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