HomeWindowsHow to search for a Location on Bing Map in Windows Phone ?

How to search for a Location on Bing Map in Windows Phone ?

If you want to search for a Location and display it on the Bing Map in Windows Phone , you can use the BingMapTask .

How to search for a Location on Bing Map in Windows Phone ?

BingMapTask is a Launcher that launches the built in Map in Windows Phone and displays the location that is specified in the SearchTerm of the BingMapTask object .

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace PhoneApp1
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            BingMapsTask bingMapsTask = new BingMapsTask();
            bingMapsTask.SearchTerm = "Christ University , Diary Circle , Bangalore";
            bingMapsTask.Show();
        }
    }
}
How to search for a Location on Bing Map in Windows Phone ?
How to search for a Location on Bing Map in Windows Phone ?

Leave a Reply

You May Also Like

This blog post will guide you through several effective methods to troubleshoot and resolve the issue of Microsoft Edge not...
Windows 11 offers a range of audio enhancements that can enrich your listening experience. These enhancements include features like virtual...
Windows 11 brings a fresh and visually stunning design to your desktop, and one of the standout features is the...