How can I use HTML5 geolocation in C# application

前端 未结 4 1491
情书的邮戳
情书的邮戳 2021-02-05 08:05

I\'m developing an anti-theft software to get computers exact location. Notebooks with built-in gps are very rare in my country so I have to use HTML5 Geolocation in my applicat

4条回答
  •  天命终不由人
    2021-02-05 08:34

    If you are deploying to a modern version of Windows, you could use the library native to .NET System.Device.Location which allows you to obtain device location information.

    Here is a link on MSDN for how to use it GeoCoordinate Class

    If using XAML, you can also try this method. Detect Users Location using XAML

提交回复
热议问题