Skip to content

Getting Started

George Njeri (Swagfin) edited this page Mar 26, 2025 · 3 revisions

Welcome to the SemanticXamlPrint wiki!

To get started install the package to your .Net Framework Project

Installing Nuget Package

NuGet Package

Install-Package SemanticXamlPrint

https://nuget.org/packages/SemanticXamlPrint

Supported Xaml Components

1. Template

<Template font="Calibri" FontSize="10" MaxWidth="290" MarginTop="10" Document="A4">
   <!--Other Components Here-->
</Template>

2. Data

<Data FontStyle="Bold" FontSize="11" TextWrap ="True" Align="Center">I like to Text Wrap</Data>

3. Image

<Image Source="logo.png" Width="100" Height="100" />

4. Grid + GridRow

<Grid ColumnWidths="1*4*2" BorderStyle="Solid">
	<GridRow>
		<Data Grid.Column="0" FontStyle="Bold">Column 1</Data>
		<Data Grid.Column="1" FontStyle="Bold">Column 2</Data>
		<Data Grid.Column="2" FontStyle="Bold" Align="Right">Column 3</Data>
	</GridRow>
</Grid>

5. DataRow + DataRowCell

<DataRow>
	<DataRowCell FontStyle="Bold" X="0">ITEM DESC.</DataRowCell>
	<DataRowCell FontStyle="Bold" X="120">RATE</DataRowCell>
	<DataRowCell FontStyle="Bold" X="170">QTY</DataRowCell>
	<DataRowCell FontStyle="Bold" X="220">AMOUNT</DataRowCell>
</DataRow>

6. Line

<Line Style="Dash" />

7. LineBreak

<LineBreak/>