public override Size GetPreferredSize(ViewLayoutContext context) { // Always return the same minimum size return new Size(_width, _height); }