Windows phone 7 bing地图应用程序/Windows Phone 7中的搜索栏

Windows phone 7 bing地图应用程序/Windows Phone 7中的搜索栏,windows-phone-7,bing-maps,Windows Phone 7,Bing Maps,我想知道Bing地图在Windows Phone上是否有搜索栏,就像Android上的谷歌地图一样。大概是这样的: private void getAddress() { WebClient webClient = new WebClient(); webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient_Download

我想知道Bing地图在Windows Phone上是否有搜索栏,就像Android上的谷歌地图一样。大概是这样的:

       private void getAddress()
       {
        WebClient webClient = new WebClient();
        webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient_DownloadStringCompleted);
        webClient.DownloadStringAsync(new Uri("http://nominatim.openstreetmap.org/search?city=%22new%20york%22&format=json"));
       }



        void webClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
        {
            Console.WriteLine("e.Result==>" + e.Result);
        }

       private void getAddress()
       {
        WebClient webClient = new WebClient();
        webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient_DownloadStringCompleted);
        webClient.DownloadStringAsync(new Uri("http://nominatim.openstreetmap.org/search?city=%22new%20york%22&format=json"));
       }



        void webClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
        {
            Console.WriteLine("e.Result==>" + e.Result);
        }

我只需要搜索具体的位置。当我输入国家、城镇或街道的名称时,我只想让应用程序在地图上显示这个地方

如果您没有解决问题,请尝试以下方法:

       private void getAddress()
       {
        WebClient webClient = new WebClient();
        webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient_DownloadStringCompleted);
        webClient.DownloadStringAsync(new Uri("http://nominatim.openstreetmap.org/search?city=%22new%20york%22&format=json"));
       }



        void webClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
        {
            Console.WriteLine("e.Result==>" + e.Result);
        }

只需在单击事件时调用getAddress()。。您将获得输出的json数据

不,Bing地图控件没有内置的,你必须自己添加。但是如何添加呢?我是wp7编程的初学者,你们有教程吗?
       private void getAddress()
       {
        WebClient webClient = new WebClient();
        webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient_DownloadStringCompleted);
        webClient.DownloadStringAsync(new Uri("http://nominatim.openstreetmap.org/search?city=%22new%20york%22&format=json"));
       }



        void webClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
        {
            Console.WriteLine("e.Result==>" + e.Result);
        }