Empty textblock taking up space

You mean when the TextBlock.text property is the empty string?

This topic gives you one answer: Hide the panel while the text is "" on the link - #2 by walter