因此,在我终于了解Xamarin.FormsDependencyService之后,我几乎得到它返回设备的当前位置。我的界面publicinterfaceICurrentLocation{MyLocationSetCurrentLocation();}我的位置publicclassMyLocation{publicdoubleLatitude{get;set;}publicdoubleLongitude{get;set;}}调用它的行MyLocationlocation=DependencyService.Get().SetCurrentLocation();并且在实现Xamarin.