Created
October 30, 2024 11:16
-
-
Save bjoerntx/b800cbbc09acd75fdd2b8431551c90b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void ComposeHeader(IContainer container) | |
| { | |
| var titleStyle = TextStyle.Default.FontSize(20).SemiBold().FontColor(Colors.Blue.Medium); | |
| container.Row(row => | |
| { | |
| row.RelativeItem().Column(column => | |
| { | |
| column.Item().Text($"Invoice #{Model.InvoiceNumber}").Style(titleStyle); | |
| column.Item().Text(text => | |
| { | |
| text.Span("Issue date: ").SemiBold(); | |
| text.Span($"{Model.IssueDate:d}"); | |
| }); | |
| column.Item().Text(text => | |
| { | |
| text.Span("Due date: ").SemiBold(); | |
| text.Span($"{Model.DueDate:d}"); | |
| }); | |
| }); | |
| row.ConstantItem(100).Height(50).Placeholder(); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment