Comments (11)
@LoriBru Thanks for the feedback.
I have reproduced the issue with @emako codes, but do not yet know why, as the test SVG file is correctly rendered by the WpfSvgTestBox
sample. Hope to resolve it soon.
from sharpvectors.
Same issue for me
from sharpvectors.
SVG file here
from sharpvectors.
Hello, I have the same issue in my application.
v1.8.0 works fine while in 1.8.1 no icons are displayed using the SvgViewbox control.
I am doing some migration tests to .NET7, which I do not see listed as support runtime. Can this be the reason?
from sharpvectors.
from sharpvectors.
@emako Sorry for the delay. Please if possible, can I have a copy of the SVG file that is failing for test?
BTW, for icons I will recommend either the SvgIcon control or the SvgImage markup.
from sharpvectors.
Here my repository.
Updated SharpVectors
to v1.8.0 and it will be reproduced.
<ItemGroup>
<PackageReference Include="SharpVectors" Version="1.8.1" />
</ItemGroup>
from sharpvectors.
I'm having a similar issue, not sure what's going on - maybe some caching issue? It was working just fine for me, so I kept working on other stuff and later noticed the SVGs had stopped rendering.
Been testing a bunch of stuff and tried reverting some code - no matter what I've tried, I have been entirely unable to get any SVG file to render again.
from sharpvectors.
<svgc:SvgIcon Fill="Red" UriSource="Resources\Svg\InStock.svg" Width="16" Height="16" />
work for me.
<svgc:SvgIcon Fill="Red" SvgSource="Resources\Svg\InStock.svg" Width="16" Height="16" />
not render.
from sharpvectors.
@Wildcatii Thanks for the update. The SvgSource
property is not used like that but for direct SVG contents input (see the documentations for illustrations)
<svgc:SvgViewbox x:Name="embeddedSvgViewbox" HorizontalAlignment="Center" VerticalAlignment="Center">
<svgc:SvgViewbox.SvgSource>
<![CDATA[
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<circle fill="#009" r="45" cx="50" cy="50"/>
<path d="M33,26H78A37,37,0,0,1,33,83V57H59V43H33Z" fill="#FFF"/>
</svg>
]]>
</svgc:SvgViewbox.SvgSource>
from sharpvectors.
No reproducible sample. If you still experience this, please post a sample.
from sharpvectors.
Related Issues (20)
- Writing changes back to SVG HOT 1
- SvgViewbox LoadAsync Exception: System.InvalidOperationException HOT 1
- Change color of svgImage at runtime HOT 5
- Change svgImage source on mouseOver? HOT 1
- SvgViewbox can not open this Uri(https://baikebcs.bdimg.com/cms/static/baike-icon.svg) HOT 4
- WpfDrawingSettings PixelWidth PixelHeight Have no effect HOT 3
- The opacity of property of SVG not correct. HOT 5
- Svg file is different with other browser. HOT 6
- XXE vulnerability allows exfiltration of local data HOT 4
- `AppName` case style may determine whether show svg image or not HOT 1
- SharpVectors release schedule? HOT 1
- Rendering issue with elements outside the canvas HOT 3
- Target framework issue when used in .NET 4.7.2. project HOT 3
- NOTE: Dropping Support for .NET 5
- The svg image is cropped
- Not Support the extra commas in SVG elements HOT 4
- The Svg file not render correct on .net7 windows platform.
- Release New version schedule? HOT 1
- EnsureViewboxSize of WpfDrawingSettings not work when svg has viewbox. HOT 2
- Size of drawinggroup is not correct in 1.83 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharpvectors.