I have a custom control that inherited from textblock control, i doing a little manipulate for design the text by few conditions, and align it by flowdirection and textalignment.
My question - is there a way to getting the displayed text? because the sourced text is not changed - the display is changed..
For example:
<TextBlock Text="Simple Test!" FlowDirection="RightToLeft" TextAlignment="Left"/>
will display: !Simple Test
<TextBlock Text="Simple Test!" FlowDirection="LeftToRight" TextAlignment="Right"/>
will display: Simple Test!
and i want to getting the displaye text in code behind.. for first example i expect to getting: !Simple Test and for second example i expect to getting: Simple Test! It's possible?