Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6974283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:13:02+00:00 2026-05-27T17:13:02+00:00

When using the Bing map control my app adds an overlay on which to

  • 0

When using the Bing map control my app adds an overlay on which to draw position markers as ellipses. Each ellipse is wired to a tap handler which works as expected in the WP7 emulator. Sadly this does not seem to be the case on HTC hardware – the map itself seems to grab all input. Does anyone know how I can fix this. Better still is there a working example with interactive layers?

Thx++

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:13:02+00:00Added an answer on May 27, 2026 at 5:13 pm

    If you create a new windows phone 7.1 silverlight application using the default template in Visual Studio 2010, then just copy the following into the MainPage.xaml and MainPage.cs files. You will need to reference the System.Device and Microsoft.Phone.Controls.Maps Dlls as well. This should allow you to click on the ellipses. I have tested it on two different WP7 phones and it works fine.

    Xaml

    <phone:PhoneApplicationPage 
        x:Class="SampleMapApp.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
        xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:maps="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
        mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
        FontFamily="{StaticResource PhoneFontFamilyNormal}"
        FontSize="{StaticResource PhoneFontSizeNormal}"
        Foreground="{StaticResource PhoneForegroundBrush}"
        SupportedOrientations="Portrait" Orientation="Portrait"
        shell:SystemTray.IsVisible="True">
    
        <phone:PhoneApplicationPage.Resources>
            <DataTemplate x:Name="EllipseTemplate">
                <maps:Pushpin Location="{Binding}" Tap="Pushpin_Tap">
                    <maps:Pushpin.Template>
                        <ControlTemplate>
                            <Ellipse Width="15" Height="15" Stroke="White" StrokeThickness="2">
                                <Ellipse.RenderTransform>
                                    <TranslateTransform X="-5" Y="5"/>
                                </Ellipse.RenderTransform>
                                <Ellipse.Fill>
                                    <SolidColorBrush Color="DarkBlue" Opacity="0.8"/>
                                </Ellipse.Fill>
                            </Ellipse>
                        </ControlTemplate>
                    </maps:Pushpin.Template>
                </maps:Pushpin>
            </DataTemplate>
        </phone:PhoneApplicationPage.Resources>
    
        <!--LayoutRoot is the root grid where all page content is placed-->
        <Grid x:Name="LayoutRoot" Background="Transparent">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="5">
                <TextBlock Text="Sample Map Application" Style="{StaticResource PhoneTextNormalStyle}"/>
            </StackPanel>
    
            <Grid x:Name="ContentPanel" Grid.Row="1" Margin="0">
                <maps:Map>
                    <maps:MapLayer>
                        <maps:MapItemsControl ItemsSource="{Binding Locations}" ItemTemplate="{StaticResource EllipseTemplate}"/>
                    </maps:MapLayer>
                    <maps:Pushpin Location="{Binding CurrentLocation, Mode=TwoWay}" Content="{Binding CurrentLocation, Mode=TwoWay}"/>
                </maps:Map>
            </Grid>
        </Grid>
    
    </phone:PhoneApplicationPage>
    

    CS

    using System.Collections.ObjectModel;
    using System.Device.Location;
    using System.Windows;
    using System.Windows.Input;
    using Microsoft.Phone.Controls;
    using Microsoft.Phone.Controls.Maps;
    
    namespace SampleMapApp {
        public partial class MainPage : PhoneApplicationPage {
            // Constructor
            public MainPage() {
                InitializeComponent();
                Locations = new ObservableCollection<GeoCoordinate>() {
                    new GeoCoordinate(-56, 73),
                    new GeoCoordinate(-14, 120),
                    new GeoCoordinate(48, -133),
                    new GeoCoordinate(-2, 11),
                    new GeoCoordinate(0, 40),
                    new GeoCoordinate(-78, -85),
                };
                CurrentLocation = Locations[0];
                DataContext = this;
            }
    
            public ObservableCollection<GeoCoordinate> Locations { get; set; }
    
            #region CurrentLocation
            public GeoCoordinate CurrentLocation {
                get { return (GeoCoordinate) GetValue(CurrentLocationProperty); }
                set { SetValue(CurrentLocationProperty, value); }
            }
    
            public static readonly DependencyProperty CurrentLocationProperty =
               DependencyProperty.Register("CurrentLocation", typeof(GeoCoordinate), typeof(MainPage), new PropertyMetadata(null));
            #endregion
    
            private void Pushpin_Tap(object sender, GestureEventArgs e) {
                CurrentLocation = (sender as Pushpin).Location;
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to create an app using Bing Map. in which i need
I'm using a MapItemsControl to control my Pushpin items within my Bing silverlight map.
I'm using silverlight Bing map control and I want to highlight country / continent
I am currently developing a Silverlight OOB application using the Bing Map Control, however
I am start develop on Bing Map application using Ajax control api. Does this
with windows phone 7 i am using teh bing map control. i have it
I want to start using Bing for a project which will include working out
Is it possible to draw a road using bing maps js api? Ideally I
I have a small application in java which searches images using bing image search.
I'm using Infostrat's WPF wrapper for the Bing maps 3d control (blog here http://blogs.msdn.com/virtualearth3d/

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.