Clearly, the end of the text in the TextBlock
is getting cut off or hidden by something. You can verify this by adding a new TextBlock
with the same text into a different window... you'll see that it works straight away. So the only question here is 'what is hiding the end of the text?'
To find that out, simply set the Background
property of the surrounding elements to various colours until you see something with one of those colours over the end of the TextBlock
. You'll then know which element is hiding the end of the text.
You set the Width
of the TextBlock
and TextBox
, but you didn't set it on the StackPanel
or ScrollViewer
. My guess is that your StackPanel
is causing the problem because they are not controls that you can use to fit-to-size.