protected override ConsoleBitmap DoRender() { if (ActualSize.IsZero()) { return(ConsoleBitmap.Empty); } var contentBitmap = Content?.Render().WithMaxSize(ActualInnerSize) ?? ConsoleBitmap.Empty; var bitmap = new ConsoleBitmap(ActualSize) .WithInserted(PaddingLeft, PaddingTop, contentBitmap); if (BackgroundColor.HasValue) { bitmap = bitmap.WithFilledBackground(BackgroundColor.Value); } return(bitmap); }