dotnetprojects/SVGImage
حول
A SVGImage Control for WPF
التصميم والوسائطما يمكنك فعله
- Geometry - Basic shapes, paths/curves/arcs, transforms and groups
- Composition - Luminance/alpha masks, clip paths, patterns, symbol/use and nested viewports
- Paint - Linear/radial gradients, spreading, CSS colors, per-use opacity and color overrides
- Text - Styled spans, text anchoring and glyphs along a textPath
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- +١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلSVGImage
SVG, naturally at home in WPF.
A native WPF SVG control and Drawing-based renderer for icons, illustrations and supported animation.
Homepage · Get started · SVG support · Changelog · NuGet

Original examples, rendered with SVGImage. Explore the SVG sources.
What can it render?
| Area | Current source support |
|---|---|
| Geometry | Basic shapes, paths/curves/arcs, transforms and groups |
| Composition | Luminance/alpha masks, clip paths, patterns, symbol/use and nested viewports |
| Paint | Linear/radial gradients, spreading, CSS colors, per-use opacity and color overrides |
| Text | Styled spans, text anchoring and glyphs along a textPath |
| Filters | Turbulence, displacement, flood, offset, merge, composite, color matrices, component transfer, blend, blur, morphology and tile |
| CSS | Author cascade, supported selectors, specificity, variables and transform/opacity keyframes |
| SMIL | Native clocks, transforms, motion paths, supported properties, timing and explicit events |
| WPF | Drawing access, intrinsic button sizing, grayscale and deterministic seeking |
See the support reference for scope and limits. The current source includes unreleased changes; published package availability is recorded in the changelog. The full SVG/resvg specification remains a work in progress.
Get started
Install a published package:
dotnet add package DotNetProjects.SVGImage
Add xmlns:svg="https://github.com/dotnetprojects/SVGImage" to your WPF window, then use:
<svg:SVGImage UriSource="Assets/illustration.svg"
Width="320" Height="240"
UseAnimations="True"
SizeType="ViewBoxToSizeNoStretch" />
Add the SVG as Content and copy it to your output directory. Installation and first steps →
Frameworks
Windows / WPF. Targets: .NET Framework 4.0, 4.5, 4.6, 4.7, 4.8, .NET Core 3.1, and .NET 6, 7, 8 for Windows.
dotnet build Source/SVGImage/DotNetProjects.SVGImage.csproj -p:GeneratePackageOnBuild=false
Use Source/SVGImage.sln with Visual Studio 2022. For unreleased features, reference the current library project or a locally built DLL.
Documentation and change history
- Homepage and native-rendered gallery
- Support reference and ongoing changelog
- Masks, CSS, animation, rendering and filters, grayscale
- Samples and regression checks
Selected verification includes 223 external SVG checks, 14 animation examples and a mask fixture compared against Chromium. Downloaded samples/reference suites remain outside the repository.
Contributing and license
Contributions and SVG reproductions are welcome. See CONTRIBUTING.md; user-visible changes belong in the changelog, which also feeds the website.
MIT licensed, with permission from the original author. Originally forked from the SVGImage Control CodeProject article.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…