Automatic resize with parent node

I use a GoNode that contains a GoText. I want the GoText to be automatically resized when the GoNode is resized (just like anchors in windows forms). Is it possible to “anchor” the text to the GoNode without resizing it manually?


Set GoText.AutoRescales to true. It’s false by default.

I’ve allready tried this setting, but this solution doesn’t really fit my requierements. What I need is some kind of anchor. My GoLabel is positioned inside the GoNode with 45 px space at the left and 5 at the right. When i activate AutoRescales and change the size of the goNode, the spaces at the left and right are also rescaled and not fixed.

OK, then you’ll need to override LayoutChildren to do what you want.