SharpVectors 1.8.5
dotnet add package SharpVectors --version 1.8.5
NuGet\Install-Package SharpVectors -Version 1.8.5
<PackageReference Include="SharpVectors" Version="1.8.5" />
<PackageVersion Include="SharpVectors" Version="1.8.5" />
<PackageReference Include="SharpVectors" />
paket add SharpVectors --version 1.8.5
#r "nuget: SharpVectors, 1.8.5"
#:package SharpVectors@1.8.5
#addin nuget:?package=SharpVectors&version=1.8.5
#tool nuget:?package=SharpVectors&version=1.8.5
About
This project provides a C# library for parsing, converting and viewing the SVG files in WPF applications.
More documentation is available at the ShapeVectors Github Pages.
Key Features
- Parsing of the SVG files to create the SVG DOM
- SVG to XAML conversion
- A small runtime library to handle font URI, embedded images and others when using the XAML files directly from disk.
- An optimized XAML output.
- Interaction with the conversion process (by a visitor pattern) to allow for custom hyper-link implementations, font substitutions etc.
- Supports .NET Framework 4+, .NET 6.0, .NET 8.0 and .NET 9.0.
Main Components
The library consists of several components as listed below and there is no dependency on external components:
SharpVectors.Core.dll(SVG interfaces and basic types)SharpVectors.Css.dll(CSS interfaces and types)SharpVectors.Dom.dll(SVG DOM, integrates CSS DOM)SharpVectors.Model.dll(SVG model, parsing and utility classes)SharpVectors.Rendering.Gdi.dll(GDI+ rendering of the SVG Model - requires more work)SharpVectors.Runtime.Wpf.dll(An independent component with scroling/zooming panels for viewing rendered XAML)SharpVectors.Rendering.Wpf.dll(WPF rendering of the SVG Model)SharpVectors.Converters.Wpf.dll(Utitlity classes providing access to the WPF rendering features)
Credits
SharpVectors uses source codes from articles and other open source projects. We wish to acknowledge and thank the authors of these great articles and projects
- SharpVectorGraphics (aka SVG#) by SVG# Team of Developers (SourceForge)
- WPF Zooming and Panning Control by Ashley Davis (CodeProject)
- Render Text On A Path With WPF by Charles Petzold (MSDN Magazine - December 2008)
- MinIoC by Microsoft (Single-file minimal C# IoC container)
- .NET ZLib Implementation by Alberto M (CodeProject)
- Brotli compression format by Google (C# Decoder)
Related Packages
- Full Package (WPF/GDI+) - Retiring (Old Name): SharpVectors.Reloaded
- WPF Package (WPF Only) - Recommended for WPF: SharpVectors.Wpf
Feedback
SharpVectors is released as open source under the BSD-3-Clause license, and the Third-Party licences
- Bug reports and contributions are welcome at SharpVectors Issues.
- Discussions and Q/A are welcome at SharpVectors Discussions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. |
| .NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 is compatible. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETFramework 4.6
- No dependencies.
-
.NETFramework 4.7
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
-
net8.0-windows7.0
- No dependencies.
-
net9.0-windows7.0
- No dependencies.
NuGet packages (17)
Showing the top 5 NuGet packages that depend on SharpVectors:
| Package | Downloads |
|---|---|
|
Common.PresentationBase
Package Description |
|
|
FlowVisualStudio.BaseModel
This is a drag-and-drop configuration process controller framework. You can extend and customize drag-and-drop modules, and implement the methods of customized modules through the process control and configuration within the framework. |
|
|
AutomationCore.Wpf
wpf core |
|
|
X.WPF.Controls
WPF - 组件库 |
|
|
FrontDesk.Bootstrapper
Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on SharpVectors:
| Repository | Stars |
|---|---|
|
Mzying2001/CefFlashBrowser
Flash浏览器 / Flash Browser
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.8.5 | 119,471 | 8/13/2025 | |
| 1.8.4.2 | 224,396 | 8/13/2024 | |
| 1.8.4.1 | 34,577 | 7/23/2024 | |
| 1.8.4 | 184,437 | 2/14/2024 | |
| 1.8.3 | 68,738 | 1/15/2024 | |
| 1.8.2 | 74,660 | 10/9/2023 | |
| 1.8.1 | 329,394 | 10/24/2022 | |
| 1.8.0 | 127,710 | 7/11/2022 | |
| 1.7.7 | 258,676 | 12/12/2021 | |
| 1.7.6 | 81,759 | 8/2/2021 | |
| 1.7.5 | 52,974 | 6/5/2021 | |
| 1.7.1 | 118,885 | 11/25/2020 | |
| 1.7.0 | 35,062 | 11/16/2020 | |
| 1.0.0 | 317,074 | 3/9/2013 |
Release 1.8.5
* Fixed: WpfRendering._cacheRendering causes Memory leak (reworked caching).
* Fixed: When converting to WPF, some system fonts (such as Arial Narrow) are not rendered.
* Fixed: Svg with color tags is not converted properly to xaml.
* Fixed: Doubts about the correctness of parsing the font-face rule.
* Fixed: Bad text display (added support for dominant-baseline).
* Added: Support for .NET 9.0.
* Removed: Support for .NET 7.0.
* Removed: Support for .NET Core 3.1.