Sunday, 11 August 2013

Hide tag in TextBlock - WPF

Hide tag in TextBlock - WPF

I have textblock with 2 Run tags and one Linebreak:
<TextBlock>
<Run Text="TopText"/>
<LineBreak/>
<Run x:Name="bottomRun" Text="Bottom text"/>
</TextBlock>
I want to hide second Run tag in code behind. But there is no Visible
property... Why is it so? What is the best solution how to hide only one
Run tag?

No comments:

Post a Comment