BING MAPS WPF V1 — BUG — Error Message Font is White on White Background, Can't See!
-
Thursday, January 19, 2012 9:11 AM
I INTENTIONALLY passed a blank key to Bing Map Credentials. This will cause Bing Maps WPF to display a white bar at the middle of the map containing the error message.
So we used Snoop to inspect the UI, and found the error message box, but the Text Color is White on White Background! Therefore, we can't see the error message.
We've exhausted the possible culprits (XAML Styles that might influence the Error Message Formatting), but that's impossible, because ErrorTextBox is not exposed.
- Edited by thenonhacker Thursday, January 19, 2012 12:45 PM
- Edited by thenonhacker Thursday, January 19, 2012 12:47 PM
- Edited by thenonhacker Tuesday, January 24, 2012 12:19 PM Added screenshot
- Moved by Richard_BrundrittMicrosoft Employee, Owner Saturday, March 10, 2012 1:38 PM (From:Bing Maps: Map Control and Web services Development)
All Replies
-
Thursday, January 19, 2012 12:21 PM
Hi,
for example!
in xaml:
<m:Map Name="BingMap" CredentialsProvider="{Binding CredentialsProvider}" . . ./>
in Mainwindow:Private ReadOnly _credentialsProvider As CredentialsProvider = New ApplicationIdCredentialsProvider(My.Settings.BingMapKey) Public ReadOnly Property CredentialsProvider() As CredentialsProvider Get Return _credentialsProvider End Get End Property
Best regards.
ZGuideTV.NET project Admin/Dev : http://zguidetv.codeplex.com/
- Edited by Pascal Hubert Thursday, January 19, 2012 12:21 PM
- Edited by Pascal Hubert Thursday, January 19, 2012 12:22 PM
-
Thursday, January 19, 2012 12:44 PM
Thanks Neo, but we already know how to create a CredentialsProvider.
The problem we're having is that the Error Message is White instead of Black. Therefore, we can't see the error message. What we're seeing is a white bar.
SCREENSHOT:
-
Wednesday, February 22, 2012 6:27 AM* Bump Thread
Any ideas guys? -
Wednesday, February 22, 2012 7:28 AMI just found a fix. This is now ok.
- Marked As Answer by thenonhacker Wednesday, February 22, 2012 7:29 AM
- Unmarked As Answer by Richard_BrundrittMicrosoft Employee, Owner Wednesday, February 22, 2012 9:32 AM
-
Wednesday, February 22, 2012 9:32 AMOwnerWhat was your fix?
http://rbrundritt.wordpress.com
-
Wednesday, February 22, 2012 3:02 PM
For some reason, the default Foreground Color of XAML is White. So we changed it to gray.- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Monday, February 27, 2012 11:29 AM
-
Tuesday, May 29, 2012 3:55 PM
I have the same problem, I set the style for all TextBlock as:
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="#FFFFFFFF"/>
<Setter Property="Padding" Value="2"/>
</Style>Why error's panel does not take the foreground color set in the bing map control???

