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 7035881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:21:27+00:00 2026-05-28T01:21:27+00:00

I have a bing map with this clip: <my:Map.Clip> <RectangleGeometry RadiusX=15 RadiusY=15 Rect=0,0,450,250 />

  • 0

I have a bing map with this clip:

<my:Map.Clip>
     <RectangleGeometry RadiusX="15" RadiusY="15" Rect="0,0,450,250" />
</my:Map.Clip>

The map is in a ScrollViewer somewhere at the bottom and only half of it is visible.
The problem is that when I scroll up to reveal the entire map, the part of the map that was not visible is now black.

This problem doesn’t occur when I don’t have a clip on my map. It’s rendered correctly.
So is this a bug in the control or am I doing something wrong?
Anyone had this issue before?

Update: I have made a small sample project to demonstrate this: link. Also, while doing this I also noticed that the problem only occurs when the map control is inside a grid. If I place it straight in the ScrollViewer it works just fine.

Update: Setting a fixed height for the grid row doesn’t help. Also, putting the grid + map inside a stackpanel and then inside a scrollviewer doesn’t work. Any of you found anything to fix this?

  • 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-28T01:21:27+00:00Added an answer on May 28, 2026 at 1:21 am

    On looking at your code, this has nothing to do with the map capturing the gestures rather than the ScrollViewer, the map maintains its original clip regardless of where the user initiates their scroll.

    The reason for this behaviour is that the Map Silverlight control (and the WebBrowser control too) include a native rendering component. For example the WebBrowser has a TileHost as described in this article. For this reason, various Silverlight framework effects cannot be applied to the map, for example RenderTransforms.

    To solve you issue you are going to have to force the map to re-render itself when the user scrolls. To do this, I locate the ScrollViewer vertical ScrollBar using Linq-to-VisualTree, then as the user scrolls apply a very very small zoom to the map. This will cause it to re-render:

    using System.Linq;
    using System.Windows;
    using System.Windows.Controls.Primitives;
    using LinqToVisualTree;
    using Microsoft.Phone.Controls;
    
    namespace BingMapClipIssueDemo
    {
        public partial class MainPage : PhoneApplicationPage
        {
            // Constructor
            public MainPage()
            {
                InitializeComponent();
    
                this.Loaded += new RoutedEventHandler(ContentPanel_Loaded);
            }
    
            void ContentPanel_Loaded(object sender, RoutedEventArgs e)
            {
    
              ScrollBar verticalScroll = ContentPanel.Descendants<ScrollBar>()
                              .Cast<ScrollBar>()
                              .Where(sb => sb.Orientation == System.Windows.Controls.Orientation.Vertical)
                              .Single();
    
              verticalScroll.ValueChanged += (s, e2) =>
                {
                  map.ZoomLevel = map.ZoomLevel + 0.00001;
                };
    
            }
        }
    }
    

    Just drop the code above into your example and it should work.

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

Sidebar

Related Questions

Well basically, I have this bing map control inside my Panorama view, when I
I have a Bing map Controll on my form and this bing map contains
I have latitude and longitude saved inside a database. I have the bing map
I have a silverlight application that contains Bing map. I want when the user
I'm working on this surface project where we have a bing maps control and
I am using bing map in my web application using api-reference7 i i have
I am using the Silverlight sdk for Bing Maps. I have my map, I
I have an application using Bing Maps that draws polygons on a map. For
I'm working on a wepbage where I have a Bing map, along with pushpins.
I have a silverlight bing map application. I am using the MVVM pattern 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.