<TextBox Grid.Column="1">
<TextBox.Resources>
<VisualBrush x:Key="hinttext" TileMode="None" AlignmentX="Left" Stretch="None">
<VisualBrush.Visual>
<TextBlock FontStyle="Normal" Text="添加任务"/>
</VisualBrush.Visual>
</VisualBrush>
</TextBox.Resources>
<TextBox.Style>
<Style TargetType="TextBox">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Style.Triggers>
<Trigger Property="Text" Value="">
<Setter Property="Background" Value="{StaticResource hinttext}"/>
</Trigger>
<Trigger Property="Text" Value="{x:Null}">
<Setter Property="Background" Value="{StaticResource hinttext}"/>
</Trigger>
</Style.Triggers>
</Style>
</TextBox.Style>
</TextBox>
效果图: