Location information in your Windows Phone applications is managed by the Windows Phone Location Service, which allows you to use your device's Wi-Fi, GPS, or cellular network to determine location. As we discussed earlier, Microsoft lays strong emphasis on location, so much that it is a basic hardware requirement for all Windows Phones.
The main class that handles the Location Service is the
GeoCoordinateWatcher class. Perform the following steps and make sure you import the DLL in your solution:
PhoneApp1as shown in the following screenshot: