简体   繁体   English

使用c#和xaml在Metro App中显示svg

[英]Display svg in Metro App with c# and xaml

I'm working at a Windows 8 Metro Application with XAML and C# 我正在使用XAML和C#在Windows 8 Metro应用程序中工作

I have got a Uri to a SVG Image, which really works, but I have no Idea how to get this Image and display it in the XAML. 我有一个Uri到SVG图像,它确实有效,但我不知道如何获取此图像并在XAML中显示它。

Or is it impossible to work with SVG în .NET Core? 或者使用SVGîn.NETCore是不可能的?

One way could be to convert the SVG to XAML paths - which you can display in any XAML view/control. 一种方法是将SVG转换为XAML路径 - 您可以在任何XAML视图/控件中显示它们。 I use this approach to show vector icons in my app. 我用这种方法在我的应用程序中显示矢量图标。 Do a quick search for SVG to(http://benpittoors.wordpress.com/2009/03/17/convert-svg-to-xaml/) 快速搜索SVG(http://benpittoors.wordpress.com/2009/03/17/convert-svg-to-xaml/)

Or is it impossible to work with SVG în .NET Core? 或者使用SVGîn.NETCore是不可能的?

The .NET Metro Profile is NOT the .NET 4.5 Full Profile or even the .NET Client Profile. .NET Metro Profile不是.NET 4.5完整配置文件,甚至不是.NET客户端配置文件。 One of the requirements or limitations of the Metro application is the inability to link to any content not compiled with Metro Profile. Metro应用程序的要求或限制之一是无法链接到未使用Metro Profile编译的任何内容。

I suggest you use WPF instead. 我建议你改用WPF。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM