Skip to content

How to fix broken Hint padding in TextBoxes? #2780

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

You must be logged in to vote

I've figured it out! Yaaay!

It was this ScrollViewer style that was causing the Hint padding problems.

<Style x:Key="MyScrollViewer" 
       TargetType="ScrollViewer">
    <Setter Property="HorizontalScrollBarVisibility" Value="Disabled" />
    <Setter Property="VerticalScrollBarVisibility" Value="Auto" />
</Style>
<Style BasedOn="{StaticResource MyScrollViewer}" TargetType="ScrollViewer" />

All I needed to do was add BasedOn="{StaticResource MaterialDesignScrollViewer}" and the Hint padding problem went away.

<Style
    x:Key="MyScrollViewer"
    BasedOn="{StaticResource MaterialDesignScrollViewer}"
    TargetType="ScrollViewer">
    <Setter Property="HorizontalScrollBarVisibility" Value="

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michaldivis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant