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

  • SEARCH
  • Home
  • 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 9197041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:59:05+00:00 2026-06-17T21:59:05+00:00

I have a full-screen Bing map control. Over the top, I want to overlay

  • 0

I have a full-screen Bing map control. Over the top, I want to overlay various other controls.

<Grid>
<maps:Map x:Name="Map" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />

<Grid Style="{StaticResource LayoutRootStyle}" Background="Transparent"
      x:Name="InnerGrid">
  <Grid.RowDefinitions>
    <RowDefinition Height="132" />
    <RowDefinition Height="*" />
  </Grid.RowDefinitions>

  <Grid.ColumnDefinitions>
    <ColumnDefinition Width="700" />
    <ColumnDefinition Width="350" />
  </Grid.ColumnDefinitions>

  ... Content ...

The trouble is that the InnerGrid consumes the mouse events which I need the map control to receive instead. Setting the background to transparent has done nothing useful.

So, I found the RoutedEvents stuff:

internal sealed partial class PageCodeBehind : Page
{
    public PageCodeBehind()
    {
        InitializeComponent();
        InnerGrid.AddHandler(PointerPressedEvent, new PointerEventHandler(OnPointerPressedEvent), true);
        InnerGrid.AddHandler(PointerMovedEvent, new PointerEventHandler(OnPointerMovedEvent), true);
    }

    private void OnPointerPressedEvent(object sender, PointerRoutedEventArgs pointerRoutedEventArgs)
    {
        // I can hit a breakpoint here...

        var peer = FrameworkElementAutomationPeer.FromElement(GigMap) as MapAutomationPeer;
        peer.RaiseAutomationEvent(...);

So – I can capture the event, but I have no idea how to trigger the event on the Map control. Having looked at the automation peer stuff – it seems like they are concerned with higher-level concepts than mouse-down, such as open tool-tip etc.

Any idea how I forward all events from my InnerGrid control to the Map control?

Many thanks for any help,
Jon

  • 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-06-17T21:59:07+00:00Added an answer on June 17, 2026 at 9:59 pm

    Ok – I found a work-around. Setting Background=”{x:Null}” on the InnerGrid makes it forward events. Beautifully undocumented as always on MSDN 🙂

    I’d still like to know any other methods available though if anyone knows more information.

    Many thanks,
    Jon

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a full screen overlay for an About page, which sits over the
I have a full screen google map application with a navbar on the top.
I have a few full screen png's where I want to create regions on
I'm building a site using HTML 5 and want to have a full screen
I have a full screen Google map with HTML/CSS toolbars overlaid on the map,
I have a full-screen UIWebView, and I want to add a semi-transparent subview on
I want to have a full screen image appear when a user visits a
I want to have a relative layout inside another full-screen relative layout, occupying full
Basically, I have to present a full-screen div on my page for various reasons.
I have a full screen lay-out and what I want is 3 colums with

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.