Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 3-Dec-12 3: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

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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900