I have a Multiline TextBlock, I want to get all the lines by code. Can anyone help me?
Text block:
<TextBlock Name="tb" TextWrapping="Wrap" > Name:_____________ <LineBreak/> Mark:____________ </TextBlock>
In C #:
text = ((TextBlock)tb).Text;
But I got only the first line.
Thanks!
source share