Skip to content

Instantly share code, notes, and snippets.

@cyriltovena
Created March 26, 2014 15:24
Show Gist options
  • Save cyriltovena/9785927 to your computer and use it in GitHub Desktop.
Save cyriltovena/9785927 to your computer and use it in GitHub Desktop.
<Grid Background="{StaticResource brushWatermarkBackground}">
<TextBlock Margin="5,2" Text="Type something..."
Foreground="{StaticResource brushForeground}"
Visibility="{Binding ElementName=txtUserEntry, Path=Text.IsEmpty,
Converter={StaticResource BooleanToVisibilityConverter}}" />
<TextBox Name="txtUserEntry" Background="Transparent"
BorderBrush="{StaticResource brushBorder}" />
</Grid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment