专为UWP设计的新SvgImageSource类是否可以在WPF项目中使用 [英] Does the new SvgImageSource class designed for UWP can be used in WPF project

查看:139
本文介绍了专为UWP设计的新SvgImageSource类是否可以在WPF项目中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎是一个相对较新的类:

It seems that a relatively new class: SvgImageSource can only be used in UWP. Is there any way to use it in a WPF project and how?

推荐答案

可以在WPF中使用任何UWP XAML UI WindowsXamlHost作为预览使用控件(它是 Windows社区工具包的一部分).另请注意,在WPF应用程序中使用UWP控件时,该应用程序仅可在Windows 10客户端PC上运行.

It will be possible to use any UWP XAML UI in WPF using XAML Islands. This is currently available as a preview using the WindowsXamlHost control which is part of the Windows Community Toolkit. Also note, that when using UWP controls in WPF apps, the app will then work only on Windows 10 client PCs.

这篇关于专为UWP设计的新SvgImageSource类是否可以在WPF项目中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆