void MapElement(IContainer container, ReportSectionMap model) { if (model.ImageSource == null || model.Location == null) { container.Text("No location provided", Typography.Normal); return; } container.Stack(stack => { stack.Spacing(5); stack.Element().Component(new ImageTemplate(model.ImageSource)); stack.Element().Text(model.Location.Format(), Typography.Normal); }); }
void MapElement(IContainer container, ReportSectionMap model) { if (model.Location == null) { container.Text("No location provided"); return; } container.ShowEntire().Column(column => { column.Spacing(5); column.Item().MaxWidth(250).AspectRatio(4 / 3f).Component <ImagePlaceholder>(); column.Item().Text(model.Location.Format()); }); }