This example demonstrates how to find a city on a map using the Microsoft Bing Search data service.
Note that the built-in search panel is not applicable in this example, so the BingSearchDataProvider.ShowSearchPanel property is set to false.
To find a city on the map, type it in the custom search panel and click the Go button. A search location parameter is passed to the BingSearchDataProvider.Search method, and you can see a desired location on the map. Note that there are 5 overloads for the Searchmethod, depending on your search criteria.
If you run this sample as is, you will get a warning message stating that the specified Bing Maps key is invalid. To learn about how to register a Bing Maps account and create a key for it, refer to How to: Get a Bing Maps Key tutorial.