Coder Social home page Coder Social logo

Comments (11)

paulushub avatar paulushub commented on June 8, 2024 2

@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.

toomasz avatar toomasz commented on June 8, 2024 2

Same issue for me

from sharpvectors.

emako avatar emako commented on June 8, 2024 1

SVG file here

from sharpvectors.

LoriBru avatar LoriBru commented on June 8, 2024 1

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.

emako avatar emako commented on June 8, 2024

v1.8.0
image


v1.8.1
image

from sharpvectors.

paulushub avatar paulushub commented on June 8, 2024

@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.

emako avatar emako commented on June 8, 2024

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.

Dealman avatar Dealman commented on June 8, 2024

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.

Wildcatii avatar Wildcatii commented on June 8, 2024

<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.

paulushub avatar paulushub commented on June 8, 2024

@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.

paulushub avatar paulushub commented on June 8, 2024

No reproducible sample. If you still experience this, please post a sample.

from sharpvectors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.