I have code like this
<Setter Property="ToolTip" >
<Setter.Value>
<ToolTip>
<StackPanel>
<TextBlock Text="Assignment Name : " FontSize="18">
<TextBlock Name="asn" FontSize="18" Foreground="GreenYellow" Text="nothing here"/>
</TextBlock>
</StackPanel>
</ToolTip>
</Setter.Value>
</Setter>
<EventSetter Event="ToolTipOpening" Handler="ToolTip_Opening"/>
I want to get the textblock with the name asn , To get text property from it.
Is this possible ?
Edit 1 : if i want to use binding for the textblock with the name :asn
to an image source
i.e. : show the image source property in the asn textblock
(text block is placed on a custom control that has an image child)
<Style TargetType="Controls:Tile">
...
<Setter Property="ToolTip" >
<Setter.Value>
<ToolTip>
<StackPanel>
<TextBlock Text="Assignment Name : " FontSize="18">
<TextBlock Name="asn" FontSize="18" Foreground="GreenYellow" Text="nothing here"/>
</TextBlock>
</StackPanel>
</ToolTip>
</Setter.Value>
</Setter>
<EventSetter Event="ToolTipOpening" Handler="ToolTip_Opening"/>
</Style>