I'm using a ModernTab within a ModernWindow. The content area has a Viewbox with a fixed size and Stretch="Uniform". The content is ~1/2 the size of the Viewbox, and it does not scale as expected. The content looks like it's being stretched within
MS Paint, defeating the purpose of the Viewbox.
I've tested the exact same xaml within an empty Window dialog (note: not ModernWindow) and it works exactly as expected.
I've resorted to creating a custom Viewbox that disables style inheritance:
this.InheritanceBehavior = System.Windows.InheritanceBehavior.SkipAllNow;
So there has to be a property in the MUI source that I cannot find, that is causing this behavior in the Viewbox.
As I mentioned, I have a solution I can move forward with; however, I would very much like to know what the root cause is.
I had to post this in a hurry, so if you'd like additional code/screenshots, I can edit this later.