SharpVectors.Wpf
1.8.5
dotnet add package SharpVectors.Wpf --version 1.8.5
NuGet\Install-Package SharpVectors.Wpf -Version 1.8.5
<PackageReference Include="SharpVectors.Wpf" Version="1.8.5" />
<PackageVersion Include="SharpVectors.Wpf" Version="1.8.5" />
<PackageReference Include="SharpVectors.Wpf" />
paket add SharpVectors.Wpf --version 1.8.5
#r "nuget: SharpVectors.Wpf, 1.8.5"
#:package SharpVectors.Wpf@1.8.5
#addin nuget:?package=SharpVectors.Wpf&version=1.8.5
#tool nuget:?package=SharpVectors.Wpf&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.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+) - Recommended: SharpVectors
- Full Package (WPF/GDI+) - Retiring (Old Name): SharpVectors.Reloaded
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 (7)
Showing the top 5 NuGet packages that depend on SharpVectors.Wpf:
Package | Downloads |
---|---|
WPFTemplateLib
WPF 帮助类库,包含但不限于以下内容: 01、MVVM 基础支持类(命令:RelayCommand;绑定:ObservableObject、SimpleBindableBase、NotifyDataErrorObject、ViewModelBase)。 02、WPF 帮助类(BindingProxy、ResourceBinding、MediaColorHelper、FrameworkElementHelper、ConverterHelper 等)。 03、附加属性帮助类(WpfXamlPropProxy、BringIntoViewBehavior、ExportPicAttached、WpfTouchScrollHelper、GridHelper、FocusAttached、DataGridAttached、 TextBoxAttached、LabelAttached、RadioButtonAttached、RotateToTranslateAttachedV2、LocationTargetRenderOriginAttached、TabControlAttached 等)。 04、行为类(DragInCanvasBehavior、SelectedItemBehavior、AttachAdornerBehavior 等)。 05、样式(<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/Styles/StyleDictionary.xaml" />); 默认主题(不引入则不设置默认样式)(<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/Styles/DefaultThemeDictionary.xaml" />); 颜色主题(部分控件有效):[默认]蓝色(*/Light.Blue.xaml)、绿色(<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/Themes/Light.Green.xaml" />)。 06、转换器("<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/WpfConverters/ConverterDictionary.xaml" />) 07、配置属性系统(ConfigManager)。 08、自定义控件(Toast、ToastTextBlock、SystemDropShadowChrome、XUI:Form、PanelWithMessage、CircleWithInOutText、PP:CornerClip、FlipableControl、FlipableContentControl、 Handy:UniformSpacingPanel、PP:DateTimePicker、PP:SimplePanel、Handy:Row/Col、AutoGrid、TitleValueUnit、fruit:Table、fruit:PasswordInput、mah:MetroHeader 等)。 09、用户控件(UC_InfoRegion、CircleWithTextBox、UC_Wait、UC_ConfirmBox 等)。 10、类型转换器(EnumDescriptionTypeConverter)。 11、在行为中使用的事件触发器(RoutedEventTrigger)。 12、增强类(FixedCountObservableCollection、RangeObservableCollection 等)。 13、一个常用值类 CommonValues(目前有两个布尔值:TrueValue、FalseValue)。 14、标记扩展(lib:IntValue、SolidColorBrushValue 等)。 基础说明: - Xaml 命名空间:xmlns:lib="https://gitee.com/dlgcy/WPFTemplateLib" 。 - 样式以"LibSty"开头,控件模版以"LibTpl"开头。WPF 系统样式以"SysSty"开头,控件模板以"SysTpl"开头。 - 转换器列表:https://gitee.com/dlgcy/WPFTemplateLib/blob/master/WpfConverters/ConverterDictionary.xaml - 默认主题的内容:https://gitee.com/dlgcy/WPFTemplateLib/blob/master/Styles/DefaultThemeDictionary.xaml - 转换器等地方需要指定值转换模式的,使用以下枚举名或值:Visibility(1)、Bool(2)、String(3)、Int(4)、Float(5)、Double(6)、SolidColorBrush(7)、UInt(8)、Short(9)、UShort(10)、Byte(11)、Long(12)。 或者整体使用[静态类]UsefulConvertParaStr,如:UsefulConvertParaStr.VisibleCollapsed、TrueFalse。 使用方法详见: 1、https://gitee.com/dlgcy/DLGCY_WPFPractice 2、https://gitee.com/dlgcy/WPFTemplate 3、https://dlgcy.com 4、https://gitee.com/dlgcy/WpfAnimationDemo 一部分是搬运修改网上的资源,一部分是自己原创,以自用为主,感兴趣的朋友也可以使用,欢迎交流讨论(微信公众号:独立观察员博客)。 重要更改基本在本人业余时间完成,仅代表个人立场,与本人所在公司无关。 免责声明:本库及维护者不对使用产生的任何问题负责,请自行充分测试。 严正声明:禁止在 996 以及相似类型的公司中使用本库。 *********************************************** 更新内容: [增强/修复] [自定义控件] CircleWithInOutText(圆环带内外文字): 添加附加属性 InnerTextBlockStyle、OuterTextBlockStyle、OuterTextHorizontalAlignment、OuterTextVerticalAlignment,修复 TextBlock 全局样式中未设置垂直居中时,圈外文字不垂直居中。 |
|
Rays.WPF
仅组织内部使用。提供与WPF相关的核心库。 |
|
Rays.Plugins.WPF
仅组织内部使用。为桌面软件(WPF)实现WPF界面插件管理机制的基础库。 |
|
TQLApp.Utilities
Utilities to simplify plugin development for Techie's Quick Launcher. |
|
Tum4ik.JustClipboardManager.PluginDevKit
Plugin development kit for Just Clipboard Manager |
GitHub repositories (5)
Showing the top 5 popular GitHub repositories that depend on SharpVectors.Wpf:
Repository | Stars |
---|---|
WolvenKit/WolvenKit
Community Mod editor/creator for REDengine games.
|
|
OrgEleCho/CurvaLauncher
Simple, light, and fast desktop launcher. 简单、轻量、快速的桌面启动器.
|
|
yaobus/SIPAM
IP地址分配管理系统
|
|
timokoessler/2FAGuard
A modern and secure Windows app for managing your 2FA authentication codes.
|
|
dotnet/apisof.net
|
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.