Share via

I have some automatically generated XAML forms code. But it is in the 2006 version of XAML. I am trying to either import the assemly and use it with 2014 or else upgrade it to the 2009/2014 version

Marc Lisevich 46 Reputation points
2022-06-13T10:38:26.29+00:00

HI,
And thanks for your help. I have some automatically generated code and there is a lot of it so I can't start from scratch. I have a Xamarin forms app and using the Xamarin.Forms latest assembly. However the XAML code I want to use uses the 2006 presentation version which I believe was used up until around 2018 and is causing me a lot of problems. So I am wondering how I can either add an assembly it is already in lined with that version but I feel that if I add that 2006 assembly it will break other things. So if that can't be done I want to upgrade my code to use a more modern version. It uses SVG so that is a must. The SVG code is in lined so I don't know how to save it as a file then export to png which I can do. Also the following needs to be upgraded:

Canvas
Canvas.RenderTransform
PathGeometry

My original problem that I have adobe illustrator files and I know I will have to modify them but I tried exporting svg to xaml and all I am getting is ancient code. Can you please help? The windows store converter literally gives me nothing.

Developer technologies | .NET | Xamarin
0 comments No comments

Answer accepted by question author

Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,166 Reputation points Microsoft External Staff
2022-06-14T02:32:10.75+00:00

Hello,

There is no such an API available in the .NET Framework for converting XAML to Svg.

For converting XAML to Svg, you'll need to find the tools yourself online.

Canvas
Canvas.RenderTransform
PathGeometry

In Xamarin.Forms, you could try with SkiaSharp, it basically allows you to do more or less the same as you can do in the native canvas.

Best Regards,

Alec Liu.


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.