在 WebBrowser 控件中显示 XAML 图像

发布于 2024-11-13 06:30:40 字数 177 浏览 6 评论 0原文

我想要实现的是类似导航或类似谷歌地图的效果(使用新的 Windows Phone 开发人员工具 7.1)。

我已将矢量图像(地图的一部分)转换为 XAML 文件。我想以导航中已知的方式在网络浏览器控件(或任何其他控件)中显示它 - 可以放大和缩小,并可以在其周围移动。

谁能建议我该怎么做?我会非常非常感激。

What I want to achieve is a navigation-like or google-maps-like effect (using new Windows Phone Developer Tools 7.1).

I've got a vector image (a piece of a map) converted to a XAML file. I'd like to display it in the webbrowser control (or any other) in the way that is known from navigations - with the possibility to zoom in and out, and to shift around it.

Can anyone advice me of how to do it? I'll be really, really grateful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

葬﹪忆之殇 2024-11-20 06:30:40

您可以使用 WriteableBitmap 在地图的独立存储中创建位图,并使用 img 标签将其显示在浏览器中。

You can use WriteableBitmap to create a bitmap in isolated storage of your map and use an img tag to display it in the browser.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文