Click here to Skip to main content
12,621,424 members (30,005 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: WPF
Hi,

I need a solution convert SVG file into XAML finally need to displaty

svg file to my wpf application.

need step by step procedure example

if i get this example calliburn Micro frame work .. i am very happy.


this is my gmail : [DELETED]@gmail.com

[edit]SHOUTING removed, Email deleted - OriginalGriff[/edit]
Posted 3-Dec-12 4:15am
ramakba474
Updated 3-Dec-12 4:48am
v2
Comments
OriginalGriff 3-Dec-12 9:48am
   
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.

Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

I know just one open-source code that does is, but a very good one, amazingly good: Inkscape:
http://en.wikipedia.org/wiki/Inkscape[^],
http://inkscape.org/download/?lang=en[^] (this page shows where to download source code).

When SVG to XAML export was first introduces, it wasn't really functional, but in recent version it works extremely well. I often advise it for WPF development which I did, and it worked very well. So, you can find this operation in source code and see how it works.

If you need to implement it in your .NET code, it will be considerable amount of work. First, you can just translate the code to C#. Another option is to use P/Invoke.

If you need to learn P/Invoke, start from here:
http://en.wikipedia.org/wiki/P/Invoke[^],
http://msdn.microsoft.com/en-us/library/Aa712982[^].

This CodeProject can also be useful: Essential P/Invoke[^].

One alternative to P/Invoke is to use C++/CLI mixed-mode (managed+unmanaged) project. This project could build a DLL required by the global hooks, but it can contain some managed wrapper CLI code, so, from the standpoint of your .NET application, you can use it as a regular .NET assembly, that is, reference it. Please see:
http://en.wikipedia.org/wiki/C%2B%2B/CLI[^],
http://www.ecma-international.org/publications/standards/Ecma-372.htm[^],
http://msdn.microsoft.com/en-us/library/xey702bw.aspx[^],
http://msdn.microsoft.com/en-us/library/3bstk3k5[^].

—SA
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.161128.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100