Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated TextboxHelper.Watermark to respect Textbox Padding #1247

Merged
merged 1 commit into from
May 30, 2014

Conversation

mauris
Copy link
Contributor

@mauris mauris commented Mar 31, 2014

When I tried adding padding to a TextBox while using TextboxHelper.Watermark, the watermark does not respect the padding value, making it awkward and out of place.

I've updated the styles for the watermark TextBlock to respect the TextBox's padding value. Hope that works!

@mauris
Copy link
Contributor Author

mauris commented Apr 3, 2014

My temporary fix is to hide the TextBox border, and wrap a Border:

        <Border Grid.Row="1" BorderThickness="1" Margin="5" BorderBrush="{StaticResource TextBoxBorderBrush}" Padding="10">
            <TextBox Name="txtSearch" BorderThickness="0" controls:TextboxHelper.Watermark="Enter search keyword such as 'php' or 'bower'" KeyUp="txtSearch_KeyUp"></TextBox>
        </Border>

@punker76 punker76 added the Bug label May 30, 2014
@punker76 punker76 added this to the v0.14 milestone May 30, 2014
punker76 added a commit that referenced this pull request May 30, 2014
updated TextboxHelper.Watermark to respect Textbox Padding
@punker76 punker76 merged commit 730cccb into MahApps:master May 30, 2014
@punker76 punker76 mentioned this pull request May 30, 2014
33 tasks
punker76 added a commit that referenced this pull request Jun 5, 2014
TextboxHelper.Watermark should respect Padding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants