I need to find a way to absolutely center the contents of a LayoutPanel in WPF. I have two text block elements that should be displayed in the vertical and horizontal center of the panel, not relying on absolute heights and widths.
This is something that I can do quite easily with a single element, since any ContentControl can have this verticalContentAlignment property, but then you only have one child and I will go back to the square.
Any help would be greatly appreciated.
source
share