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

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

问题描述

似乎是一个相对较新的类:SvgImageSource 只能在 UWP 中使用.有什么方法可以在 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 使用 XAML 岛.目前可以使用 预览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天全站免登陆