.NET GeoCoordinate.GetDistanceTo的Equivelant在Windows 8 Metro风格应用 [英] Equivelant of .NET GeoCoordinate.GetDistanceTo in Windows 8 Metro style Apps

查看:242
本文介绍了.NET GeoCoordinate.GetDistanceTo的Equivelant在Windows 8 Metro风格应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是Metro风格的Windows 8应用程序的方法System.Device.Location.GeoCoordinate.GetDistanceTo的equivelant。

What is the equivelant of the System.Device.Location.GeoCoordinate.GetDistanceTo method in Metro style Windows 8 Applications.

地铁应用程序有会有地理座标类(小写的'C'),但没有GetDistanceTo方法。

Metro applications have the Geocoordinate class (With a lower case 'C') but no GetDistanceTo method.

其次,地铁会有地理座标类没有构造函数。如何创建它的一个实例。

Secondly, the Metro Geocoordinate class has no constructor. How can I create an instance of it.

推荐答案

地铁会有地理座标没有公共构造出于某种原因。在我看来,实现这个最好的方法是使用反射器和复制 System.Device.Location.GeoCoordinate 这也会给你 GetDistanceTo实施

The Metro Geocoordinate has no public constructor for some reason. The best way to implement this in my opinion is to use Reflector and copy the implementation of System.Device.Location.GeoCoordinate which will also give you GetDistanceTo.

希望这将被重新添加到该API在稍后的时间

Hopefully this will be re-added to the API at a later time.

这篇关于.NET GeoCoordinate.GetDistanceTo的Equivelant在Windows 8 Metro风格应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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