Trying to get to the TextBlock below in my code behind so i can set its text programmatically. However the x:name "HintText" does not show up. Is it because its part of the styling of the TextBox?
<TextBox x:Name="SearchTextBox"
Grid.Column="2"
TextAlignment="Left"
VerticalContentAlignment="Center"
BorderThickness="0"
FontFamily="{DynamicResource RobotoFont}"
Foreground="{DynamicResource EclipseGray}"
FontSize="18"
TextChanged="SearchTextBox_OnTextChanged"
GotFocus="SearchTextBox_OnGotFocus"
LostFocus="SearchTextBox_OnLostFocus">
<TextBox.Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="Background" Value="White"></Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Text.IsEmpty}" Value="True">
<Setter Property="Background">
<Setter.Value>
<VisualBrush AlignmentX="Left" AlignmentY="Center" Stretch="None">
<VisualBrush.Visual>
<TextBlock x:Name="HintText"
VerticalAlignment="Center"
FontSize="16"
Foreground="LightGray"
FontFamily="{DynamicResource RobotoFont}">
Search for a word or phrase...
</TextBlock>
</VisualBrush.Visual>
</VisualBrush>
</Setter.Value>
</Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBox.Style>
</TextBox>