views:

205

answers:

1

I would like to have some text to be inside a rectangle with stroke around this rectangle (just like property "Stroke" of the object "Rectangle" itself). But I didn't manage to find a property of the object "Textblock" wich defines such a stroke.

+4  A: 

You can place the TextBlock inside a Border and set the properties of the Border to draw the rectangle around your text.

GraemeF
Yes, it works. Thanks a lot!
rem