|
|
@@ -26,12 +26,8 @@
|
|
|
<Panel>
|
|
|
<TextBlock Name="watermark"
|
|
|
Opacity="0.5"
|
|
|
- Text="{TemplateBinding Watermark}">
|
|
|
- <TextBlock.IsVisible>
|
|
|
- <Binding RelativeSource="{RelativeSource TemplatedParent}"
|
|
|
- SourcePropertyPath="Text"
|
|
|
- Converter="{Static local:StringNullOrEmpty.Instance}"/>
|
|
|
- </TextBlock.IsVisible>
|
|
|
+ Text="{TemplateBinding Watermark}"
|
|
|
+ IsVisible="{TemplateBinding Path=Text, Converter={Static local:StringNullOrEmpty.Instance}}">
|
|
|
</TextBlock>
|
|
|
<TextPresenter Name="PART_TextPresenter"
|
|
|
CaretIndex="{TemplateBinding CaretIndex}"
|