I had the same issue. The window cannot grow when using ScaleTransform
, since it's semantic in nature. That is, it doesn't change WPF calculated layout values, and only applied after the layout has been set.
My solution to this was simply to make the window larger, with transparent margins. and remove it's borders. You can find a working example here: WPF MessageBox