Pysar.Wpf
0.1.65
dotnet add package Pysar.Wpf --version 0.1.65
NuGet\Install-Package Pysar.Wpf -Version 0.1.65
<PackageReference Include="Pysar.Wpf" Version="0.1.65" />
<PackageVersion Include="Pysar.Wpf" Version="0.1.65" />
<PackageReference Include="Pysar.Wpf" />
paket add Pysar.Wpf --version 0.1.65
#r "nuget: Pysar.Wpf, 0.1.65"
#:package Pysar.Wpf@0.1.65
#addin nuget:?package=Pysar.Wpf&version=0.1.65
#tool nuget:?package=Pysar.Wpf&version=0.1.65
Pysar.Wpf
WPF integration for Pysar, a cross-platform report engine for
.NET: pack URI and assembly manifest asset access, font registration, a scrollable, zoomable
ReportView, and printing. It installs a DefaultReportPlatformHandler over WpfAssetFileSystem for file and font access.
Windows only. On macOS and Linux the package is not produced; the real WPF sources compile only
under net10.0-windows.
Setup
Call UsePysar from Application.OnStartup:
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
this.UsePysar(pysar => pysar
.AddFont("Fonts/Ubuntu-Regular.ttf", "Ubuntu")
.AddFont("Fonts/Ubuntu-Bold.ttf", "Ubuntu", FontStyle.Bold));
}
Showing a report
<pysar:ReportView Report="{Binding Report}"
ZoomMode="FitWidth"
Zoom="{Binding Zoom}"
EffectiveZoom="{Binding EffectiveZoom, Mode=OneWayToSource}"
CurrentPage="{Binding CurrentPage}"
PageSpacing="24" />
Ctrl + wheel zooms around the pointer; a plain wheel scrolls; double-click toggles fit width and
close-up. PageBorderColor and PageBorderThickness frame each page; PageSpacing is the gap
between pages and does not scale with the zoom. Bind EffectiveZoom to show the zoom percentage —
Zoom holds what was asked for, not what the view settled on.
Printing
Printing uses the same vector PDF pipeline as export:
var printer = new WpfReportPrinter(ReportViewRenderer.Instance);
await printer.PrintAsync(builtReport);
The report must already have Build() called.
Documentation
License
MIT — see LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- HarfBuzzSharp (>= 14.2.1.1)
- HarfBuzzSharp.NativeAssets.Linux (>= 14.2.1.1)
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.1)
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Pysar.Viewer (>= 0.1.65)
- SkiaSharp (>= 4.151.2)
- SkiaSharp.NativeAssets.Linux (>= 4.151.2)
- SkiaSharp.NativeAssets.macOS (>= 4.151.2)
- SkiaSharp.NativeAssets.Win32 (>= 4.151.2)
- Svg.Skia (>= 5.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.65 | 96 | 11/2/2026 |
| 0.1.63 | 118 | 10/1/2026 |
| 0.1.56 | 121 | 9/20/2026 |
| 0.1.53 | 113 | 9/20/2026 |
| 0.1.46 | 122 | 9/18/2026 |
| 0.1.44 | 108 | 9/16/2026 |
| 0.1.41 | 113 | 9/15/2026 |
| 0.1.38 | 114 | 9/14/2026 |
| 0.1.34 | 120 | 9/13/2026 |
| 0.1.31 | 122 | 9/11/2026 |
| 0.1.24 | 135 | 9/6/2026 |
| 0.1.10 | 136 | 8/30/2026 |
| 0.1.0 | 125 | 8/30/2026 |
Added automatic font resolution from platform registrations:
- MAUI: reports can use fonts registered with ConfigureFonts by alias.
- Uno: fonts declared with UnoFont are available by family name and matching style.
- Explicit AddFont registrations retain priority.
Fixed cross-assembly font cache leakage and duplicate embedded font resources in Uno. Updated documentation and added MAUI and Uno examples.