I’m struggling with how to build this window in WPF.
The window has a Text Block whose contents are not known at design time. The Window should grow vertically to make the entire Text Block visible
I’ve tried a hierarchy similar to:
Window (auto height)
Stack Panel (vertical orientation)
Text Block
Check Box
Grid (for precise positioning of the buttons)
Button 1
Button 2
Is this a reasonable hierarchy? Is there a better way to build this?

What you are doing should work fine. You will want to make sure that you use the SizeToContent Property on your parent Window.
Something like this:
XAML
**CodeBehind”