How to export to XAML without <Path.Data>

Post questions on how to use or achieve an effect in Inkscape.
Wanderer
Posts: 2
Joined: Sun Oct 22, 2017 9:16 pm

How to export to XAML without <Path.Data>

Postby Wanderer » Sun Oct 22, 2017 10:21 pm

There are two options for export XAML
1. without Silverlight compatibile
2. Silverlight compatibile

I need without Silverlight compatibile, where is created viewbox, problem is, exported path have this structure:

Code: Select all

<Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="header" Fill="#FF009819" StrokeThickness="0.85975945">
        <Path.Data>
          <PathGeometry Figures="m 0 138.24998 v 39.99999 h ..." FillRule="NonZero"/>
        </Path.Data>
      </Path>

when Silverlight compatibile is selected, then it export this way:

Code: Select all

<Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="header" Fill="{StaticResource linearGradient4544}" StrokeThickness="0.22747801" Data="m 0 138.24998 ..."/>
and I need path exported with this way. Is there options how to export without Silverlight compatibile and path exported with S. compatibile?

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to export to XAML without <Path.Data>

Postby brynn » Sun Oct 22, 2017 11:33 pm

I just did a test. When I use File menu > Save As > XAML, after I click Save, Inkscape gives a very small dialog, asking Silverlight compatible (XAML) or not. It's a checkbox.

I'm using the current stable version 0.92.2

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to export to XAML without <Path.Data>

Postby Moini » Sun Oct 22, 2017 11:52 pm

I don't think there are more options than the interface offers.
You could perhaps export to both formats, and then copy the viewbox (or whichever it is that you need) over from one format to the other.

If you would like to make a feature request, please visit:
https://bugs.launchpad.net/inkscape

There, make sure to thoroughly explain what you need (and also why you need it might help). I'm not sure I do understand which parts of the data bits you copied here are those that you want.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Wanderer
Posts: 2
Joined: Sun Oct 22, 2017 9:16 pm

Re: How to export to XAML without <Path.Data>

Postby Wanderer » Wed Oct 25, 2017 12:45 am

Thanks for answers,
You could perhaps export to both formats, and then copy the viewbox (or whichever it is that you need) over from one format to the other.
Yes, that is what I doing now.
What I need is save file as xaml but with paths like Silverlight compatibility. It is for GUI engine, where this kind of paths is needed, other paths are not rendered.


Return to “Help with using Inkscape”