Metro 风格应用程序中使用 XAML 和 C# 的 Bing 地图

发布于 2025-01-01 07:15:02 字数 67 浏览 4 评论 0原文

可以在 Windows 8 上的 Metro Style 应用程序中使用带有 XAML 和 C# 的 Bing 地图吗?

It's possible to use Bing Maps with XAML and C# in Metro Style App on Windows 8 ?

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

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

发布评论

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

评论(2

灼痛 2025-01-08 07:15:02

适用于 Metro 风格应用程序的 Bing 地图测试版已于 3 月份发布,这应该就是您所寻找的。

更多信息请参见:http://msdn.microsoft.com/en-us/library /hh846481.aspx

简单使用示例:http://timheuer.com/blog/archive /2012/03/06/bing-maps-for-winrt-xaml.aspx

A beta release of Bing Maps for Metro Style Apps came out in March, this should be what you are looking for.

More info here: http://msdn.microsoft.com/en-us/library/hh846481.aspx

Simple usage example: http://timheuer.com/blog/archive/2012/03/06/bing-maps-for-winrt-xaml.aspx

2025-01-08 07:15:02

是的,您可以使用 WebView 控件来托管任何 HTML 内容。最简单的示例是

<Grid x:Name="LayoutRoot" Background="#FF0C0C0C">
        <WebView x:Name="bingMapsView" Width="1050" Height="300" HorizontalAlignment="Left"/>
</Grid>

在代码中设置 URL。

Uri targetUri = new Uri("http://www.bing.com/maps/default.aspx");
bingMapsView.Navigate(targetUri);

您可以使用http://www.microsoft.com/maps/isdk/ajax/ 了解如何使用 bing 地图 SDK。

Yes, you can use the WebView Control to host any HTML content. The simplest example would be

<Grid x:Name="LayoutRoot" Background="#FF0C0C0C">
        <WebView x:Name="bingMapsView" Width="1050" Height="300" HorizontalAlignment="Left"/>
</Grid>

and set the URL in your code.

Uri targetUri = new Uri("http://www.bing.com/maps/default.aspx");
bingMapsView.Navigate(targetUri);

You can use http://www.microsoft.com/maps/isdk/ajax/ to figure out how to use the bing maps SDK.

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